سلام. وقتی میخوام phpunit رو از طریق composer نصب کنم، دقیقا مثل استاد انجام میدم اما مرحله آخر این ارور میاد:
In BaseCommand.php line 304:
[LogicException]
Calling getPlatformRequirementFilter from a command which does not define the --ignore-platform-req[s] flags is not permitted.
Exception trace:
at phar:///usr/local/Cellar/composer/2.3.4/bin/composer/src/Composer/Command/BaseCommand.php:304
Composer\\Command\\BaseCommand->getPlatformRequirementFilter() at phar:///usr/local/Cellar/composer/2.3.4/bin/composer/src/Composer/Command/PackageDiscoveryTrait.php:274
Composer\\Command\\InitCommand->findBestVersionAndNameForPackage() at phar:///usr/local/Cellar/composer/2.3.4/bin/composer/src/Composer/Command/PackageDiscoveryTrait.php:241
Composer\\Command\\InitCommand->determineRequirements() at phar:///usr/local/Cellar/composer/2.3.4/bin/composer/src/Composer/Command/InitCommand.php:423
Composer\\Command\\InitCommand->interact() at phar:///usr/local/Cellar/composer/2.3.4/bin/composer/vendor/symfony/console/Command/Command.php:283
Symfony\\Component\\Console\\Command\\Command->run() at phar:///usr/local/Cellar/composer/2.3.4/bin/composer/vendor/symfony/console/Application.php:1015
Symfony\\Component\\Console\\Application->doRunCommand() at phar:///usr/local/Cellar/composer/2.3.4/bin/composer/vendor/symfony/console/Application.php:299
Symfony\\Component\\Console\\Application->doRun() at phar:///usr/local/Cellar/composer/2.3.4/bin/composer/src/Composer/Console/Application.php:334
Composer\\Console\\Application->doRun() at phar:///usr/local/Cellar/composer/2.3.4/bin/composer/vendor/symfony/console/Application.php:171
Symfony\\Component\\Console\\Application->run() at phar:///usr/local/Cellar/composer/2.3.4/bin/composer/src/Composer/Console/Application.php:130
Composer\\Console\\Application->run() at phar:///usr/local/Cellar/composer/2.3.4/bin/composer/bin/composer:88
require() at /usr/local/Cellar/composer/2.3.4/bin/composer:29
init [--name NAME] [--description DESCRIPTION] [--author AUTHOR] [--type [TYPE]] [--homepage HOMEPAGE] [--require REQUIRE] [--require-dev REQUIRE-DEV] [-s|--stability STABILITY] [-l|--license LICENSE] [--repository REPOSITORY] [-a|--autoload AUTOLOAD]