X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fdom-crawler%2FField%2FFileFormField.php;h=3288fc135a77846539368271803af23d87b969c2;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=fc21239f0105938b011ca4e3eb3dda655eaad08e;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/vendor/symfony/dom-crawler/Field/FileFormField.php b/vendor/symfony/dom-crawler/Field/FileFormField.php index fc21239f0..3288fc135 100644 --- a/vendor/symfony/dom-crawler/Field/FileFormField.php +++ b/vendor/symfony/dom-crawler/Field/FileFormField.php @@ -28,7 +28,7 @@ class FileFormField extends FormField public function setErrorCode($error) { $codes = array(UPLOAD_ERR_INI_SIZE, UPLOAD_ERR_FORM_SIZE, UPLOAD_ERR_PARTIAL, UPLOAD_ERR_NO_FILE, UPLOAD_ERR_NO_TMP_DIR, UPLOAD_ERR_CANT_WRITE, UPLOAD_ERR_EXTENSION); - if (!in_array($error, $codes)) { + if (!\in_array($error, $codes)) { throw new \InvalidArgumentException(sprintf('The error code %s is not valid.', $error)); }