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

v3.0.5 breaks Symfony Maker Command - Syntax error, unexpected T_NAME_FULLY_QUALIFIED #841

Closed
kathibeepboop opened this issue Sep 3, 2020 · 3 comments

Comments

@kathibeepboop
Copy link

kathibeepboop commented Sep 3, 2020

Since Version 3.0.5 we cannot use the symfony maker command to regenerate entities anymore.

Error Message

In ParserAbstract.php line 315:
                                                             
  [PhpParser\Error]                                          
  Syntax error, unexpected T_NAME_FULLY_QUALIFIED on line 3  
                                                             

Exception trace:
  at /workspaces/php-parser-error/src/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php:315
 PhpParser\ParserAbstract->doParse() at /workspaces/php-parser-error/src/vendor/nikic/php-parser/lib/PhpParser/ParserAbstract.php:158
 PhpParser\ParserAbstract->parse() at /workspaces/php-parser-error/src/vendor/symfony/maker-bundle/src/Util/ClassSourceManipulator.php:879
 Symfony\Bundle\MakerBundle\Util\ClassSourceManipulator->setSourceCode() at /workspaces/php-parser-error/src/vendor/symfony/maker-bundle/src/Util/ClassSourceManipulator.php:73
 Symfony\Bundle\MakerBundle\Util\ClassSourceManipulator->__construct() at /workspaces/php-parser-error/src/vendor/symfony/maker-bundle/src/Doctrine/EntityRegenerator.php:209
 Symfony\Bundle\MakerBundle\Doctrine\EntityRegenerator->createClassManipulator() at /workspaces/php-parser-error/src/vendor/symfony/maker-bundle/src/Doctrine/EntityRegenerator.php:75
 Symfony\Bundle\MakerBundle\Doctrine\EntityRegenerator->regenerateEntities() at /workspaces/php-parser-error/src/vendor/symfony/maker-bundle/src/Maker/MakeEntity.php:779
 Symfony\Bundle\MakerBundle\Maker\MakeEntity->regenerateEntities() at /workspaces/php-parser-error/src/vendor/symfony/maker-bundle/src/Maker/MakeEntity.php:135
 Symfony\Bundle\MakerBundle\Maker\MakeEntity->generate() at /workspaces/php-parser-error/src/vendor/symfony/maker-bundle/src/Command/MakerCommand.php:104
 Symfony\Bundle\MakerBundle\Command\MakerCommand->execute() at /workspaces/php-parser-error/src/vendor/symfony/console/Command/Command.php:258
 Symfony\Component\Console\Command\Command->run() at /workspaces/php-parser-error/src/vendor/symfony/console/Application.php:934
 Symfony\Component\Console\Application->doRunCommand() at /workspaces/php-parser-error/src/vendor/symfony/framework-bundle/Console/Application.php:96
 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /workspaces/php-parser-error/src/vendor/symfony/console/Application.php:264
 Symfony\Component\Console\Application->doRun() at /workspaces/php-parser-error/src/vendor/symfony/framework-bundle/Console/Application.php:82
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /workspaces/php-parser-error/src/vendor/symfony/console/Application.php:140
 Symfony\Component\Console\Application->run() at /workspaces/php-parser-error/src/bin/console:43

make:entity [-a|--api-resource] [--regenerate] [--overwrite] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> [<name>]

Steps to reproduce

Steps to start the devcontainer

please note all the commits, you can see the difference

@DerManoMann
Copy link
Collaborator

this is already fixed on master.
@bfanger if you could find the time for a follow up release and packagist update that would be great

@bfanger
Copy link
Collaborator

bfanger commented Sep 3, 2020

Sure! i'll tag it 3.1.0, like you proposed earlier, @DerManoMann feel free to create tags when you think a feature is ready.

@bfanger
Copy link
Collaborator

bfanger commented Sep 3, 2020

Released 3.1.0

@DerManoMann I've also added you as a maintainer, you should also be able to press the "Update" button on the https://packagist.org/packages/zircote/swagger-php to sync the changes from GitHub to Packagist.

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

3 participants