Skip to content

Commit

Permalink
Update TwigExtensions.php
Browse files Browse the repository at this point in the history
readImageSize code fix
  • Loading branch information
readtedium committed Dec 26, 2018
1 parent 00604d6 commit 49761dc
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 49761dc

Please sign in to comment.