We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hi.
Thank you for making PHP Matcher 🙂
With a PHP Matcher expectation like this:
{ "@context":"/api/contexts/ConstraintViolationList", "@type":"ConstraintViolationList", "hydra:title":"An error occurred", "hydra:description":@string@, "violations":[ { "propertyPath":"total", "message":@string@, "code":"" } ] }
If [violations][0][code] is null null, PHP Matcher gives the following message
[violations][0][code]
null
Value "" does not match pattern "" at path: "[violations][0][code]"
This is confusing, when seeing this you wonder why "" !== "" 🤔
"" !== ""
Maybe it could be instead:
Value null does not match pattern "" at path: "[violations][0][code]"
The text was updated successfully, but these errors were encountered:
could you please create an example https://php-matcher.norbert.tech/ and share the URL here so I can replicate this issue?
Sorry, something went wrong.
Here it is
@alexsegura I was just wondering why haven't used @null@ as in the documentation?
@null@
If you do so as for the other kind of validations, the error will be more clear: LIKE HERE
No branches or pull requests
Hi.
Thank you for making PHP Matcher 🙂
With a PHP Matcher expectation like this:
If
[violations][0][code]
isnull
null, PHP Matcher gives the following messageThis is confusing, when seeing this you wonder why
"" !== ""
🤔Maybe it could be instead:
The text was updated successfully, but these errors were encountered: