We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd97303 commit dce5091Copy full SHA for dce5091
libraries/src/Image/Image.php
@@ -650,9 +650,8 @@ public function loadFile($path)
650
651
/**
652
* Check if handle has been created successfully
653
- * @todo: Remove check for resource when we only support PHP 8
654
*/
655
- if (!(\is_object($handle) || \is_resource($handle))) {
+ if (!\is_object($handle)) {
656
throw new \RuntimeException('Unable to process ' . $type . ' image.');
657
}
658
0 commit comments