Skip to content

Commit

Permalink
#148 fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tbela99 committed Aug 25, 2021
1 parent 122cf94 commit bd119bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/Images.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,10 @@ public static function generateSrcSet($file, array $sizes = [], array $options =

$width = $dim[0];

$sizes = array_filter($sizes, function ($size) use ($width) {
$sizes = array_values(array_filter($sizes, function ($size) use ($width) {

return $width > $size;
});
}));

if (empty($sizes)) {

Expand Down

0 comments on commit bd119bb

Please sign in to comment.