Skip to content

ECS 13.3.23

Choose a tag to compare

@TomasVotruba TomasVotruba released this 19 Nov 09:57
· 0 commits to 344d9279d34fef196f5ba2cf0814a87ff4daab7a since this release

Bug fixes 🐛

  • Honor --output-format=json in --blink and auto-blink runs - blink now prints the same JSON report as the PHP engine, no more console output breaking tools that parse it (#383, ecsphp/ecs#352), thanks to @markitosgv
  • Clear the cache by emptying its directory instead of deleting it, so a mounted cache directory (e.g. Docker volume) keeps working (#384, ecsphp/ecs#354), thanks to @markitosgv

Blink (Go engine) 😉

Safer fixing

  • Leave a file unchanged when the fixed code no longer parses - each fixed file is checked with php -l before it is written, and reported as an error on failure (#386, #379)

Parity fixes, thanks to @gnutix, @markitosgv and @spawnia

  • BracesPosition: move a body written on the brace line onto its own lines, like PHP-CS-Fixer (#381, #378)
  • IsNull: rewrite the same calls as PHP-CS-Fixer - skip first-class callables, spread and named arguments, and local is_null() functions (#380, #377)
  • PhpdocToComment: keep docblocks followed by an attribute (#382, ecsphp/ecs#351)
  • StatementIndentation: keep comments between case labels in the previous case, reindent PHP in templates, blank lines, alternative syntax and CRLF comments (#387, #388, #371)