Skip to content

Commit dce5091

Browse files
authored
[5.3] handle check (joomla#44275)
Thanks
1 parent fd97303 commit dce5091

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libraries/src/Image/Image.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,9 +650,8 @@ public function loadFile($path)
650650

651651
/**
652652
* Check if handle has been created successfully
653-
* @todo: Remove check for resource when we only support PHP 8
654653
*/
655-
if (!(\is_object($handle) || \is_resource($handle))) {
654+
if (!\is_object($handle)) {
656655
throw new \RuntimeException('Unable to process ' . $type . ' image.');
657656
}
658657

0 commit comments

Comments
 (0)