•  
      request #14719 Replace inline docblock declarations with assertions
    Infos
    #14719
    Thomas Gerbet (tgerbet)
    2020-04-02 11:20
    2020-03-25 16:11
    15994
    Details
    Replace inline docblock declarations with assertions
    The goal is to replace annotation like `/** @var PFUser $current_user */` into `\assert($current_user instanceof PFUser);`.


    Assertions present the advantage they can be verified at runtime in test environments while having no cost in production environments.
    Dev tools
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2020-03-31
    Attachments
    Empty
    References

    Follow-ups