Skip to content

Commit

Permalink
Merge pull request #2 from readtedium/master
Browse files Browse the repository at this point in the history
Update TwigExtensions.php to fix `readImageSize(string $url)` return value from string to array
  • Loading branch information
balazscsaba2006 authored Jan 22, 2019
2 parents 00604d6 + 49761dc commit 04da9f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/twig/TwigExtensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ private function cacheImageSize($key, $width, $height, $expire = 604800): void
*
* @return string|null
*/
private function readImageSize(string $url): ?string
private function readImageSize(string $url): ?array
{
$client = new FasterImage();

Expand All @@ -238,4 +238,4 @@ private function readImageSize(string $url): ?string

return reset($result)['size'];
}
}
}

0 comments on commit 04da9f6

Please sign in to comment.