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
multiline.items.argument: fillPlain – arguments that are all plain values share lines, or one line where they fit, while a call passing a closure, another call, a named argument or a message keeps a line for each. The nette standard turns it on, so there check reports plain arguments written one per line and fix fills them
hygiene.countEmptyTest – count($a) === 0 becomes $a === [] and count($a) > 0 becomes $a !== [], sizeof() too, where the types say the value is surely an array. A risky fix where the namespace could declare its own count(). Needs typeAnalysis: phpstan, in the set cleanup and so in the nette standard (#5)
A line too wide gets a tidier fix around ||, . or +: where the first or last operand would have to spread its brackets anyway, only those spread and the operators stay beside them, $a || foo( and ) || $b. It decides only what fix writes, check accepts both shapes
dresscode.annotated.neon – one configuration to read, setting every decision of the catalogue with what its value means and the other values it takes
With typeAnalysis: phpstan, every installation of PHPStan keeps its caches in a directory of its own, so projects on the same version no longer depend on each other's vendor/