Ensure that setError is always int.

This commit is contained in:
Simon Sessingø
2016-11-24 09:42:37 +01:00
parent 258e0e0f13
commit e4ab14a2cb

View File

@@ -100,7 +100,7 @@ class InputFile extends InputItem
*/
public function setError($error)
{
$this->error = $error;
$this->error = (int)$error;
return $this;
}