Skip to content

Conversation

@Tobion
Copy link
Member

@Tobion Tobion commented Jul 1, 2019

This is not according to PSR-7 which says @param string|string[] $value Header value(s). but for BC and missing type declarations it makes sense.

Fixes #282

@Tobion Tobion changed the title Accept null, bool and float header values again Accept null and bool header values again Jul 1, 2019
This is not according to PSR-7 which says `@param string|string[] $value Header value(s).` but for BC and missing type declarations it makes sense.
@Tobion Tobion force-pushed the null-header-value branch from 700a62b to 91eebe8 Compare July 1, 2019 16:10
['', '', 'Header name can not be empty.'],
['foo', false, 'Header value must be a string or numeric but boolean provided'],
['foo', new \stdClass(), 'Header value must be a string or numeric but stdClass provided.'],
['foo', new \stdClass(), 'Header value must be scalar or null but stdClass provided.'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is there double whitespace here. ;)

@sagikazarmark sagikazarmark merged commit 239400d into 1.x Jul 1, 2019
@sagikazarmark sagikazarmark deleted the null-header-value branch July 1, 2019 23:21
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

Successfully merging this pull request may close these issues.

4 participants