Skip to content

Commit

Permalink
Feature - #NoId - Upgrade composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
SuleymanKaplan11 committed Nov 7, 2024
1 parent ced2444 commit daa1060
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"require": {
"php": ">=8.0",
"composer/installers": "^2.0.1",
"ps/image-optimizer": "^2.0.5"
"spatie/image-optimizer": "^1.8.0"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.7.1"
Expand Down
2 changes: 1 addition & 1 deletion src/ImageMin.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public static function getOptimizer($jpeg_level = self::DEFAULT_JPEG_LEVEL)

$options = apply_filters('wp-cubi-imagemin\options', $options);

self::$optimizer = (new \ImageOptimizer\OptimizerFactory($options))->get();
self::$optimizer = \Spatie\ImageOptimizer\OptimizerChainFactory::create();
}

return self::$optimizer;
Expand Down

0 comments on commit daa1060

Please sign in to comment.