使用: symfony new my_project_nasdame --version=lts
[或者]
作曲家创建项目 symfony/网站骨架 my_project_name
[或者]
symfony 新 test_project332
PHP7.4
到处都是错误
lexcodfh@artek:~/tmp [130] $ ~/.symfony/bin/symfony new test_new_project
* Creating a new Symfony project with Composer
[KO]
Script cache:clear returned with error code 255
!!
!! Fatal error: Declaration of Symfony\Component\DependencyInjection\ServiceLocator::has(string $id) must be compatible with Psr\Container\ContainerInterface::has($id) in /home/l/lexcodfh/tmp/test_new_project/vendor/symfony/dependency-injection/ServiceLocator.php on line 46
!! Symfony\Component\ErrorHandler\Error\FatalError {#89
!! -error: array:4 [
!! "type" => 64
!! "message" => "Declaration of Symfony\Component\DependencyInjection\ServiceLocator::has(string $id) must be compatible with Psr\Container\ContainerInterface::has($id)"
!! "file" …Run Code Online (Sandbox Code Playgroud)