tinyimg icon indicating copy to clipboard operation
tinyimg copied to clipboard

[FIX] Fix nullable name parameter in CompressImagesCommand to avoid PHP deprecation warnings

Open konradmichalik opened this issue 5 months ago • 0 comments

With PHP 8.4 we're getting the following deprecation warning:

PHP Deprecated:  Schmitzal\Tinyimg\Command\CompressImagesCommand::__construct(): Implicitly marking parameter $name as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/schmitzal/tinyimg/Classes/Command/CompressImagesCommand.php on line 39

This PR fixes this issue.

konradmichalik avatar Jul 24 '25 06:07 konradmichalik