Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error at the end of install #1665

Closed
webspin opened this issue Oct 7, 2020 · 1 comment
Closed

Error at the end of install #1665

webspin opened this issue Oct 7, 2020 · 1 comment

Comments

@webspin
Copy link

webspin commented Oct 7, 2020

Commands executed (empty project):

# Create a new Symfony Flex project
$ composer create-project symfony/skeleton synapi
# Enter the project folder
$ cd synapi
# Install the API Platform's server component in this skeleton
$ composer req api

Result:
PHP Fatal error: Uncaught Error: Call to a member function getPrettyString() on string in /media/data/html/synapi/vendor/symfony/flex/src/Unpacker.php:153
Stack trace:
#0 /media/data/html/synapi/vendor/symfony/flex/src/Command/UnpackCommand.php(79): Symfony\Flex\Unpacker->unpack(Object(Symfony\Flex\Unpack\Operation))
#1 /media/data/html/synapi/vendor/symfony/flex/src/Command/RequireCommand.php(63): Symfony\Flex\Command\UnpackCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php(245): Symfony\Flex\Command\RequireCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(835): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 phar:///usr/local in /media/data/html/synapi/vendor/symfony/flex/src/Unpacker.php on line 153

PHP 7.2.24-0ubuntu0.18.04.6 (cli) (built: May 26 2020 13:09:11) ( NTS )

@dunglas
Copy link
Member

dunglas commented Oct 7, 2020

This has been fixed by symfony/flex#685

@dunglas dunglas closed this as completed Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants