Skip to content

Commit

Permalink
refactor: fix never empty array on Image
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Dec 27, 2024
1 parent 8c62422 commit 9805121
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion system/Images/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function getProperties(bool $return = false)
$path = $this->getPathname();
$vals = getimagesize($path);

if ($vals === [] || $vals === false) {
if ($vals === false) {
throw ImageException::forFileNotSupported();
}

Expand Down
8 changes: 0 additions & 8 deletions utils/phpstan-baseline/identical.alwaysFalse.neon

This file was deleted.

1 change: 0 additions & 1 deletion utils/phpstan-baseline/loader.neon
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ includes:
- generator.returnType.neon
- generator.valueType.neon
- greaterOrEqual.invalid.neon
- identical.alwaysFalse.neon
- if.condNotBoolean.neon
- isset.offset.neon
- isset.property.neon
Expand Down

0 comments on commit 9805121

Please sign in to comment.