1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Modernize to PHP 8.0

This commit is contained in:
Yassine Guedidi 2025-04-05 13:56:56 +02:00
parent 1d5674a230
commit a107773c11
31 changed files with 97 additions and 199 deletions

View file

@ -171,7 +171,7 @@ class DownloadImages
try {
$im = imagecreatefromstring($res->getContent());
} catch (\Exception $e) {
} catch (\Exception) {
$im = false;
}
@ -190,7 +190,7 @@ class DownloadImages
$imagick->readImageBlob($res->getContent());
$imagick->setImageFormat('gif');
$imagick->writeImages($localPath, true);
} catch (\Exception $e) {
} catch (\Exception) {
// if Imagick fail, fallback to the default solution
imagegif($im, $localPath);
}