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

Missing bool type in graphNavigator.php in method accept() #764

Closed
Webonaute opened this issue May 10, 2017 · 4 comments
Closed

Missing bool type in graphNavigator.php in method accept() #764

Webonaute opened this issue May 10, 2017 · 4 comments

Comments

@Webonaute
Copy link

In class GraphNavigator.php in method accept() near line 139.

it missing
case 'bool':

@goetas
Copy link
Collaborator

goetas commented May 10, 2017

no, as you can see here, bool is not in the list of the default base types http://jmsyst.com/libs/serializer/master/reference/annotations#type

@goetas goetas closed this as completed May 10, 2017
@Webonaute
Copy link
Author

Webonaute commented May 10, 2017

When I serialize my json, I get this error

[2017-05-10 13:38:43] request.CRITICAL: Uncaught PHP Exception ReflectionException: "Class bool does not exist" at /projects/vendor/jms/metadata/src/Metadata/MetadataFactory.php line 167 {"exception":"[object] (ReflectionException(code: -1): Class bool does not exist at /project/vendor/jms/metadata/src/Metadata/MetadataFactory.php:167)"} {"memory_usage":"4 MB","uid":"8cff6fd652f1a1144d216a52b56b76ed","user":"Not logged in."}

@goetas
Copy link
Collaborator

goetas commented May 10, 2017

you have to write boolean using the @Type annotation

@Webonaute
Copy link
Author

oh ok. I found it.
thank

zaporylie added a commit to zaporylie/php-vipps that referenced this issue Aug 31, 2020
zaporylie added a commit to zaporylie/php-vipps that referenced this issue Aug 31, 2020
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

2 participants