Fixed exists method in InputHandler returning incorrect value.

This commit is contained in:
Simon Sessingø
2018-04-01 04:26:48 +02:00
parent 1dc88d23e1
commit 17a7b28e82
2 changed files with 34 additions and 34 deletions
+3 -3
View File
@@ -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;
}
/**