you try to create a new symfony project and you fail for this error

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://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Helper/HelperSet.php on line 112

or may be also this one

unable to run composer.phar create-project symfony/skeleton ... --no-interaction

or also this one

The package is not available in a stable-enough version according to your minimum-stability setting

try to upgrade composer package installed globaly so use this command:

composer global update

if you still have the problem that means that it’s not related to installed global packages but in the version of composer may be deprecated so try to update it by executing this command

composer self-update

if this didn’t resolve the problem see more solutions in this article https://www.trywithgeek.com/symfony-unable-to-run-composer-phar/

hope i helped

thank you

Aller au contenu principal