@@ -447,7 +447,8 @@ class ServerRequest implements ArrayAccess, ServerRequestInterface
*/
protected function _processFiles($post, $files)
{
- if (empty($files) ||
+ if (
+ empty($files) ||
!is_array($files)
) {
return $post;
@@ -2590,7 +2590,8 @@ class Validator implements ArrayAccess, IteratorAggregate, Countable
}
- if (($flags & self::EMPTY_FILE)
+ ($flags & self::EMPTY_FILE)
&& $data instanceof UploadedFileInterface
&& $data->getError() === UPLOAD_ERR_NO_FILE