Browse Source

No else statement required.

ndm2 7 years ago
parent
commit
0aeef36d28
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/Validation/Validation.php

+ 2 - 1
src/Validation/Validation.php

@@ -783,7 +783,8 @@ class Validation
     {
         if ($check instanceof UploadedFileInterface) {
             return static::extension($check->getClientFilename(), $extensions);
-        } elseif (is_array($check)) {
+        }
+        if (is_array($check)) {
             $check = isset($check['name']) ? $check['name'] : array_shift($check);
 
             return static::extension($check, $extensions);