From e4ab14a2cb8a3a0315fe1ba8347d1319f4e4d59b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sessing=C3=B8?= Date: Thu, 24 Nov 2016 09:42:37 +0100 Subject: [PATCH] Ensure that setError is always int. --- src/Pecee/Http/Input/InputFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pecee/Http/Input/InputFile.php b/src/Pecee/Http/Input/InputFile.php index fa6d6b8..6cd1b35 100644 --- a/src/Pecee/Http/Input/InputFile.php +++ b/src/Pecee/Http/Input/InputFile.php @@ -100,7 +100,7 @@ class InputFile extends InputItem */ public function setError($error) { - $this->error = $error; + $this->error = (int)$error; return $this; }