Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid typehint for Enqueue\Client\Message::setBody #31

Closed
dkarlovi opened this issue Mar 21, 2017 · 0 comments
Closed

Invalid typehint for Enqueue\Client\Message::setBody #31

dkarlovi opened this issue Mar 21, 2017 · 0 comments

Comments

@dkarlovi
Copy link
Contributor

When using PHPStan with my code, it figured out I'm passing an array to Enqueue\Client\Message::setBody (which is supported, as it's serialized to JSON), but the typehint says @param null|string $body, get an error:

Parameter #1 $body of method Enqueue\Client\Message::setBody() expects string|null, string[] given. 
@makasim makasim closed this as completed in ef22b17 Apr 3, 2017
makasim added a commit to php-enqueue/enqueue that referenced this issue Apr 3, 2017
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

No branches or pull requests

1 participant