Skip to content

Commit

Permalink
Remove an unnecessary type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Feb 26, 2024
1 parent 6e7b64a commit bdd2527
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core-bundle/src/Image/ImageFactory.php
Expand Up @@ -69,7 +69,6 @@ public function create(ImageInterface|string $path, ResizeConfiguration|array|in
if ($path instanceof ImageInterface) {
$image = $path;
} else {
$path = (string) $path;
$fileExtension = Path::getExtension($path, true);

if (\in_array($fileExtension, ['svg', 'svgz'], true)) {
Expand Down

0 comments on commit bdd2527

Please sign in to comment.