2

(symfony4)So I create a database with the Laragon server then I create an entity with: php bin / console make: entity the entity was created but when I create a property name I got an error message:

In MakeEntity.php line 379:
                                         
  Undefined class constant 'JSON_ARRAY'  
                                         

make:entity [-a|--api-resource] [-b|--broadcast] [--regenerate] [--overwrite] [--] [<name>]

1 Answer 1

1

I have the same problem but in Symfony5. According to this page: https://issueexplorer.com/issue/symfony/symfony/43536, the issue is brand new and they are working on a fix.

1
  • 1
    I changed the server to Xampp, and the problem was fixed, Try to change it and if you have a problem with it send it to me Commented Oct 20, 2021 at 15:59

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.