Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Link with null attribute #46

Open
marcosh opened this issue Oct 8, 2018 · 1 comment
Open

Link with null attribute #46

marcosh opened this issue Oct 8, 2018 · 1 comment

Comments

@marcosh
Copy link
Contributor

marcosh commented Oct 8, 2018

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

new Link('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

@weierophinney
Copy link
Member

This repository has been closed and moved to mezzio/mezzio-hal; a new issue has been opened at mezzio/mezzio-hal#6.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants