Skip to content

Released version 1.3.2

Choose a tag to compare

@dg dg released this 01 Nov 23:06
· 98 commits to master since this release
  • 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/