Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Commitd468bfd
committed
bug#43393 GuardEvent::getTransition() cannot return null (toby-griffiths)
This PR was merged into the 5.4 branch.Discussion----------GuardEvent::getTransition() cannot return null| Q | A| ------------- | ---| Branch? | 5.4?| Bug fix? | no| New feature? | no| Deprecations? | no| Tickets | n/a| License | MIT| Doc PR | n/aSince $transition is required on the constructor, we can type thint that getTransition always return the `Transition`, rather than `Transition|null`.This is a purely annotation change so no change to CHANGELOG or tests, but please let me know if this is desired, or I should target a different branch.I'm also happy to update the other events that are only ever called with with a concrete Transition, if this is acceptable, however I need guidance on whether there's a change these could be called without the Transition in other uses, somehow, or not.Commits-------75bc96d GuardEvent::getTransition() cannot return null1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
| |||
0 commit comments
Comments
(0)