mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-13 17:23:27 +03:00
Ensure that setError is always int.
This commit is contained in:
@@ -100,7 +100,7 @@ class InputFile extends InputItem
|
||||
*/
|
||||
public function setError($error)
|
||||
{
|
||||
$this->error = $error;
|
||||
$this->error = (int)$error;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user