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

Attempted to call an undefined method named "create" of class "PhpParser\ParserFactory" #68

Open
jackyraimond opened this issue Sep 17, 2024 · 0 comments
Labels
kind/bug Something isn't working

Comments

@jackyraimond
Copy link

jackyraimond commented Sep 17, 2024

PHP Version

8.1 / 8.2

Shopware Version

6.5.X / 6.6.X

Plugin Version

1.0.3

Actual behaviour

In version 5 of the PHP-Parser library, ParserFactory::create() has been removed. This will give an error when creating an OneToOneAssociationField and then create an own entity extensions. It’s caused by this line.

Expected behaviour

Create own entity extension and after that proceed with generating the Entity.

Steps to Reproduce?

  1. Run frosh:make:definition
  2. Add OneToOneAssociationField
  3. Select yes "Create an own entity extensions?"

Output:

In EntityLoader.php line 83:
                                                                                                              
  [Symfony\Component\ErrorHandler\Error\UndefinedMethodError]                                                 
  Attempted to call an undefined method named "create" of class "PhpParser\ParserFactory".                    
  Did you mean to call e.g. "createForHostVersion", "createForNewestSupportedVersion" or "createForVersion"?  

@jackyraimond jackyraimond added the kind/bug Something isn't working label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant