mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
Fixed exists method in InputHandler returning incorrect value.
This commit is contained in:
@@ -251,12 +251,12 @@ class InputHandler
|
||||
* Check if a input-item exist
|
||||
*
|
||||
* @param string $index
|
||||
* @param array ...$method
|
||||
* @param array ...$methods
|
||||
* @return bool
|
||||
*/
|
||||
public function exists(string $index, ...$method): bool
|
||||
public function exists(string $index, ...$methods): bool
|
||||
{
|
||||
return $this->get($index, $method) !== null;
|
||||
return $this->get($index, ...$methods) !== null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user