Skip to content

Commit 83a759f

Browse files
committed
silence getimagesizefromstring errors #249
1 parent b8bb0ca commit 83a759f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/CurlDispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function dispatchImages(array $urls)
182182
$curl = new CurlResult($connection);
183183

184184
$curl->onBody(function ($body, stdClass $data) {
185-
if (($info = getimagesizefromstring($body))) {
185+
if (($info = @getimagesizefromstring($body))) {
186186
$data->width = $info[0];
187187
$data->height = $info[1];
188188
$data->mime = $info['mime'];

0 commit comments

Comments
 (0)