-
Notifications
You must be signed in to change notification settings - Fork 96
Closed
Description
Symfony\Component\Messenger\Envelope::all()
returns a different type based on whether or not an argument was passed to it. Currently PHPStan doesn't know that which results in errors like this:
Parameter #1 ... of method ... expects array<array<Symfony\Component\Messenger\Stamp\StampInterface>>, array<array<Symfony\Component\Messenger\Stamp\StampInterface>|Symfony\Component\Messenger\Stamp\StampInterface> given.
I'd send PR but I'm not sure how cases like these should be solved in PHPStan. If you can give me an advice how to do it, I'll send the PR.
Metadata
Metadata
Assignees
Labels
No labels