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
The macro method uses the @param-closure-this tag to change the value of $this. If support for this tag is implemented, then you will not have to specify the type using @var.
Feature description or problem with existing feature
Some Laravel classes provide the ability to add custom methods via closures, but when using them you have to specify the type for
$this
every time.Describe the solution you'd like
The
macro
method uses the@param-closure-this
tag to change the value of$this
. If support for this tag is implemented, then you will not have to specify the type using@var
.Additional context
https://phpstan.org/writing-php-code/phpdocs-basics#callables
The text was updated successfully, but these errors were encountered: