You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug symfony#58090 [Messenger] Fix conditional type on WrappedExceptionsInterface (derrabus)
This PR was merged into the 7.2 branch.
Discussion
----------
[Messenger] Fix conditional type on WrappedExceptionsInterface
| Q | A
| ------------- | ---
| Branch? | 7.2
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fixsymfony#58066 (comment)
| License | MIT
This PR replaces symfony#58068 with a simpler version that still fixes the issue that symfony#58066 caused.
Conditional return types that refer to arguments (here: `$class`) instead of template types are supported by both major static analysis tools:
* https://phpstan.org/r/2bb3f152-3325-4618-a9b2-5470806edc9c
* https://psalm.dev/r/d62bb4307d
Commits
-------
defa371 [Messenger] Fix conditional type on WrappedExceptionsInterface
0 commit comments