Expecting null but give an array throws strange runtime error
alexander-schranz opened this issue · 3 comments
alexander-schranz commented
I have the following snapshot:
{
"availableLocales": null
}
Which is testing the following json:
{
"availableLocales": [
"en"
]
}
It errors with Argument 4 is null instead of string at:
php-matcher/src/Matcher/ArrayMatcher.php
Line 76 in ac729bb
It seems like a problem with expecting null but getting an array but not sure where the error exists.
norberttech commented
hey @alexander-schranz thanks for reporting this bug!
#336 will fix it, expect a new patch release soon!
norberttech commented
Version 6.0.8 was just released
alexander-schranz commented
@norberttech Thank you!