Skip to content

Commit

Permalink
Fix order of method parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
BobWez98 authored Dec 24, 2024
1 parent 70a3419 commit 8f48d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Responsive.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static function getPresets(Asset $asset): array
}

if (self::canUseMimeTypeSource()) {
if ($glideUrl = self::getGlideUrl($asset, $fit ?? $data['fit'], $preset)) {
if ($glideUrl = self::getGlideUrl($asset, $preset, $fit ?? $data['fit'], $asset->mimeType())) {
$presets[$asset->mimeType()] .= $glideUrl.' '.$size;

if ($preset !== 'placeholder') {
Expand Down

0 comments on commit 8f48d03

Please sign in to comment.