Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPDoc: use @return $this for fluent methods #1362

Merged
merged 1 commit into from
Mar 2, 2020
Merged

PHPDoc: use @return $this for fluent methods #1362

merged 1 commit into from
Mar 2, 2020

Commits on Mar 2, 2020

  1. PHPDoc: use @return $this for fluent methods

    Fluent methods, especially setters, return the object on which are
    called. This is documented in PHPDoc using the `$this` keyword, which
    is equivalent to `static` with the additional notion of object identity.
    This helps IDEs and static analysis tools provide more meaningful output.
    caugner authored and PowerKiKi committed Mar 2, 2020
    Configuration menu
    Copy the full SHA
    5c2abf2 View commit details
    Browse the repository at this point in the history