Skip to content

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

@dkarlovi

Description

@dkarlovi

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. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions