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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added.understudy.rest, opt-in: three or more Arg::any() at the end
of a specified call can be one Arg::rest() (#56). A suggestion under its own
identifier, reported on the first Arg::any() of the run, and only where
the two are the same specification: the engine records a non-variadic
method's arguments by name, so both accept exactly the same calls. Never
for a method with a variadic parameter, a named or unpacked argument, or a
call spelling fewer arguments than required or more than declared.
PHPStan has no severity below an error, so the rule is off by default and
an upgrade reports nothing new; enable it with parameters: understudy: suggestRest: true (a parametersSchema entry,
the rule registered through conditionalTags). The same rule and wording as UnderstudyRestSuggestion in understudy-psalm; the trailing-run logic is a
shared Internal\RestTail, guarded by the fingerprint test.
Added.Arg::whichProperty() (understudy 1.2.0) against a parameter
that holds no object is reported under understudy.matcher, like which() (#52). The rest of #52 shipped in 1.1.0; its returns() half is
PHPStan's own argument.type, pinned in Fixtures/Returns.