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 #51478 [Process] Fix bug where $this->callback is never null, resulting in bad argument (weaverryan)
This PR was squashed before being merged into the 6.4 branch.
Discussion
----------
[Process] Fix bug where $this->callback is never null, resulting in bad argument
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | None
| License | MIT
| Doc PR | Not needed
Hi!
Caused by #51068 - by the time `$this->getDescriptors()` is called, `$this->callback` is ALWAYS a callable thanks to `$this->callback = $this->buildCallback($callback)`.
Previously, there was a separate `hasCallback` property that handled this logic. I chose to NOT re-add that because it was only needed in `getDescriptors()` and that is only called from this one place: easier to pass `$hasCallback` as an argument.
Caught by the symfony/ux test suite ❤️
Cheers!
Commits
-------
95aa23699f2 [Process] Fix bug where $this->callback is never null, resulting in bad argument
0 commit comments