Skip to content

Commit 9805121

Browse files
committed
refactor: fix never empty array on Image
1 parent 8c62422 commit 9805121

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

system/Images/Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function getProperties(bool $return = false)
104104
$path = $this->getPathname();
105105
$vals = getimagesize($path);
106106

107-
if ($vals === [] || $vals === false) {
107+
if ($vals === false) {
108108
throw ImageException::forFileNotSupported();
109109
}
110110

utils/phpstan-baseline/identical.alwaysFalse.neon

Lines changed: 0 additions & 8 deletions
This file was deleted.

utils/phpstan-baseline/loader.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ includes:
2828
- generator.returnType.neon
2929
- generator.valueType.neon
3030
- greaterOrEqual.invalid.neon
31-
- identical.alwaysFalse.neon
3231
- if.condNotBoolean.neon
3332
- isset.offset.neon
3433
- isset.property.neon

0 commit comments

Comments
 (0)