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

Non nullable parameter in ValidatorTrait #60

Open
AlexLisenkov opened this issue Mar 30, 2020 · 0 comments
Open

Non nullable parameter in ValidatorTrait #60

AlexLisenkov opened this issue Mar 30, 2020 · 0 comments

Comments

@AlexLisenkov
Copy link
Contributor

Validating fields with validExistence set to false creates an exception when calling the getValidator method.

"Argument 1 passed to App\\JsonApi\\Hydrator\\JobPosition\\AbstractJobPositionHydrator::getValidator() must be of the type string, null given, called in /var/www/html/vendor/paknahad/jsonapi-bundle/src/Hydrator/ValidatorTrait.php on line 89".

Parameter is not nullable but can be null due to validExistence set to false.

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

1 participant