Skip to content

Commit

Permalink
Adapt
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Oct 27, 2024
1 parent 55f463f commit d571856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/Imagick/Decoders/FilePointerImageDecoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class FilePointerImageDecoder extends BinaryImageDecoder
public function decode(mixed $input): ImageInterface|ColorInterface
{
if (!is_resource($input) || !in_array(get_resource_type($input), ['file', 'stream'])) {
throw new DecoderException('Unable to decode input');
throw new DecoderException('Input is no file pointer resource.');
}

$contents = '';
Expand Down

0 comments on commit d571856

Please sign in to comment.