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
Description
This might not be the exact place to report this, as the error seems to come from the api-platform/graphql package (which doesn’t have an issue tab on GitHub). However, it appears to occur specifically within Laravel. If an invalid field type is encountered, the GraphQL package throws an InvalidTypeException in certain cases, such as here. The exception originates from the symfony/config package, which isn't required or included in a default Laravel installation, as far as I can tell. Hence, if this exception occurs, a PHP Fatal Error is thrown indicating that the class InvalidTypeException cannot be found.
How to reproduce
I haven’t pinpointed the exact cause yet, but it seems related to having an attribute in a model with an invalid or unsupported type in the type container.
Possible Solution
It might be necessary to include the symfony/config package as a dependency in the composer.json file. I’m not certain if this should be added here in the API Platform package or in the GraphQL package itself, but it seems more relevant to the latter.
The text was updated successfully, but these errors were encountered:
API Platform version(s) affected: 4.0.1
Description
This might not be the exact place to report this, as the error seems to come from the api-platform/graphql package (which doesn’t have an issue tab on GitHub). However, it appears to occur specifically within Laravel. If an invalid field type is encountered, the GraphQL package throws an
InvalidTypeException
in certain cases, such as here. The exception originates from thesymfony/config
package, which isn't required or included in a default Laravel installation, as far as I can tell. Hence, if this exception occurs, a PHP Fatal Error is thrown indicating that the classInvalidTypeException
cannot be found.How to reproduce
I haven’t pinpointed the exact cause yet, but it seems related to having an attribute in a model with an invalid or unsupported type in the type container.
Possible Solution
It might be necessary to include the
symfony/config
package as a dependency in thecomposer.json
file. I’m not certain if this should be added here in the API Platform package or in the GraphQL package itself, but it seems more relevant to the latter.The text was updated successfully, but these errors were encountered: