Skip to content

0.6.2

Choose a tag to compare

@dereuromark dereuromark released this 13 May 22:01
· 17 commits to master since this release
c9b7e70

Improvements

  • Cache class name resolution and skip redundant return-type body scans (#62)
  • O(1) conditions checks + cached arrow-function scopes in ConsistentIndentSniff (#63)
  • Cache UseStatementsTrait::getUseStatements and bound the throw class-name lookup to the current statement (#64)
  • Cache docblock FQCN lookups (parseUseStatements / getNamespace) and dedupe per-doc-block processing (#65)
  • Cache UseStatementSniff::getUseStatements across phpcbf fix iterations (#66)

Combined, these cut composer cs-check wall-clock time roughly in half on large method-heavy codebases. On an 11k-line CakePHP controller the slowest single file went from ~40s to ~6s; on a 1095-file project the whole-codebase scan dropped from ~2m08s to ~30s with parallel=16.

Full Changelog: 0.6.1...0.6.2