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
{{ message }}
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
Creating a Link with a null attribute, I get an InvalidArgumentException. I'm not 100% sure about it but I guess that having null attributes should be allowed in Hal links
Code to reproduce the issue
newLink('a', 'b', false, ['c' => null]);
Expected results
I would expect to get a Link with a c attribute with a null value
Actual results
An InvalidArgumentException with message Zend\\Expressive\\Hal\\Link expects the $value to be a PHP primitive or array of strings; received NULL is thrown
The text was updated successfully, but these errors were encountered:
Creating a Link with a
null
attribute, I get anInvalidArgumentException
. I'm not 100% sure about it but I guess that havingnull
attributes should be allowed in Hal linksCode to reproduce the issue
Expected results
I would expect to get a
Link
with ac
attribute with anull
valueActual results
An
InvalidArgumentException
with messageZend\\Expressive\\Hal\\Link expects the $value to be a PHP primitive or array of strings; received NULL
is thrownThe text was updated successfully, but these errors were encountered: