Skip to content

Commit

Permalink
More fixes for PHPStan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
akrabat committed Nov 25, 2018
1 parent 5678983 commit 6267d67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Slim/App.php
Expand Up @@ -9,6 +9,7 @@
namespace Slim;

use Exception;
use Psr\Http\Message\UriInterface;
use Slim\Exception\InvalidMethodException;
use Slim\Http\Response;
use Throwable;
Expand Down
2 changes: 1 addition & 1 deletion Slim/Http/UploadedFile.php
Expand Up @@ -85,7 +85,7 @@ public static function createFromEnvironment(Environment $env)
{
if (is_array($env['slim.files']) && $env->has('slim.files')) {
return $env['slim.files'];
} elseif (isset($_FILES)) {
} elseif (! empty($_FILES)) {
return static::parseUploadedFiles($_FILES);
}

Expand Down

0 comments on commit 6267d67

Please sign in to comment.