You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building an API with API Platform+Symfony+Doctrine. After upgrading from 3.3 to 4.1 (currently 4.1.18) I've got several errors I cannot get rid of.
ArgumentCountError: Too few arguments to function ApiPlatform\State\ApiResource\Error::__construct(), 0 passed in [path]/vendor/api-platform/openapi/Factory/OpenApiFactory.php on line 927 and at least 3 expected in [path]/vendor/api-platform/state/ApiResource/Error.php on line 108 - and that's true, the object is created directly, and passes no arguments
Two similar errors: ValueError: "Traversable" is not a valid backing value for enum Symfony\Component\TypeInfo\TypeIdentifier in [path]/vendor/symfony/type-info/Type/BuiltinType.php on line 46 and the same about ArrayAccess
I wonder if I am the only one with these problems? I wasted lots of time trying to google and then solve them with chatGPT
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building an API with API Platform+Symfony+Doctrine. After upgrading from 3.3 to 4.1 (currently 4.1.18) I've got several errors I cannot get rid of.
ArgumentCountError: Too few arguments to function ApiPlatform\State\ApiResource\Error::__construct(), 0 passed in [path]/vendor/api-platform/openapi/Factory/OpenApiFactory.php on line 927 and at least 3 expected in [path]/vendor/api-platform/state/ApiResource/Error.php on line 108
- and that's true, the object is created directly, and passes no argumentsTwo similar errors:
ValueError: "Traversable" is not a valid backing value for enum Symfony\Component\TypeInfo\TypeIdentifier in [path]/vendor/symfony/type-info/Type/BuiltinType.php on line 46
and the same aboutArrayAccess
I wonder if I am the only one with these problems? I wasted lots of time trying to google and then solve them with chatGPT
This is my composer.json
composer.json
Beta Was this translation helpful? Give feedback.
All reactions