Skip to content

Commit 80152c0

Browse files
committed
[BUGFIX] Fix phpstan issue
1 parent e6a6cd1 commit 80152c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/OptimizeImageService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function process(
5353

5454
if ($extension === null) {
5555
$pathInfo = pathinfo($file);
56-
if ($pathInfo['extension'] !== null) {
56+
if (isset($pathInfo['extension'])) {
5757
$extension = $pathInfo['extension'];
5858
}
5959
}

0 commit comments

Comments
 (0)