phplaravellaravel-9intervention

Image Intervention Can Not Be Installed On Laravel 9


I'm using Laravel v9.4 with PHP v8.2 and I wanted to install Image Intervention package on my project, so I ran:

composer require intervention/image

But I get this error:

PHP Deprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traver sable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/ symfony/console/Helper/HelperSet.php on line 112

So what's going wrong here?


Solution

  • The problem is on the composer itself. Update your composer using this command: composer global update