diff --git a/system/Images/Image.php b/system/Images/Image.php index ab9aa51a6ec7..55754e339535 100644 --- a/system/Images/Image.php +++ b/system/Images/Image.php @@ -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(); } diff --git a/utils/phpstan-baseline/identical.alwaysFalse.neon b/utils/phpstan-baseline/identical.alwaysFalse.neon deleted file mode 100644 index a048001eed03..000000000000 --- a/utils/phpstan-baseline/identical.alwaysFalse.neon +++ /dev/null @@ -1,8 +0,0 @@ -# total 1 error - -parameters: - ignoreErrors: - - - message: '#^Strict comparison using \=\=\= between array\{0\: int\<0, max\>, 1\: int\<0, max\>, 2\: int, 3\: string, mime\: string, channels\?\: int, bits\?\: int\}\|false and array\{\} will always evaluate to false\.$#' - count: 1 - path: ../../system/Images/Image.php diff --git a/utils/phpstan-baseline/loader.neon b/utils/phpstan-baseline/loader.neon index 6c306f263944..40d901a7ab2d 100644 --- a/utils/phpstan-baseline/loader.neon +++ b/utils/phpstan-baseline/loader.neon @@ -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