Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

pc579's avatar
Level 1

Composer install - PHP Deprecated

I have a Laravel 9 project with Php 8.1, It works on my dev server. But , after cloning the project to prod, I run "composer install" and get these errors

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:///usr/local/bin/composer/vendor/symfony/console/Helper/HelperSet.php on line 112
...

I don't understand and should appreciate any help.

Thanks in advance.

0 likes
3 replies
pc579's avatar
Level 1

Thank @jlrdw for your reply.

Php version, just a minor difference.

  • dev : 8.1.14
  • prod : 8.1.16

Had a look to the link your shared but did not find a solution right now ... to be continued ...

pc579's avatar
Level 1

@jlrdw

Ok after composer selfupdate

Get another pb, will a next post if I don't find a solution.

Please or to participate in this conversation.