hello sir ,
I use 2 php, namely php 7.4 and php 8.1, nginx webserver
then run composer -V , on version php 7.4 there are no errors
but if you use PHP 8.1 the following error appears
"
PHP Deprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///www/server/php/74/bin/composer/vendor/symfony/console/Helper/HelperSet.php on line 112
Deprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///www/server/php/74/bin/composer/vendor/symfony/console/Helper/HelperSet.php on line 112
"
HOW TO FIX ???