Skip to content

Commit 74f999e

Browse files
committed
Fix bug
1 parent 0495fd3 commit 74f999e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ImageVariant.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public function cover(
237237
bool $preventUpscale = false,
238238
string $position = 'center'
239239
): self {
240-
$this->operations['fit'] = [
240+
$this->operations['cover'] = [
241241
'width' => $width,
242242
'height' => $height,
243243
'callback' => $callback,

src/Operations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,6 @@ public function callback(array $arguments): void
278278
);
279279
}
280280

281-
$arguments['callable']($this->image, $arguments);
281+
$arguments['callback']($this->image, $arguments);
282282
}
283283
}

0 commit comments

Comments
 (0)