•  
      request #22588 Drop manual assertions after calling EventDispatcherInterface::dispatch
    Infos
    #22588
    Thomas Gerbet (tgerbet)
    2021-08-03 17:05
    2021-07-30 10:09
    24152
    Details
    Drop manual assertions after calling EventDispatcherInterface::dispatch

    In order to have autocompletion/static analysis we often have added an assert() after a call to EventDispatcherInterface::dispatch.

    For the static analysis part, Psalm does not need it anymore, we introduced a stub for it a while ago.

    For the IDE autocompletion, we can hint Jetbrains tools what's the actual type of the returned value by defining a specific override in a .phpstorm.meta.php file.

    Dev tools
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2021-08-03
    Attachments
    Empty
    References

    Follow-ups