Skip to content

ECS 13.3.25

Latest

Choose a tag to compare

@TomasVotruba TomasVotruba released this 23 Nov 13:00

New Features 🎉

  • NoExtraBlankLines: support parenthesis_brace_block, square_brace_block and attribute tokens in blink (#430), thanks to @Arkounay
  • Run each of the 132 fixable slevomat sniffs in blink against the PHP engine in parity CI (#427)

Bugfixes 🐛

Blink parity fixes - identical output to the PHP engine on a 10,390-file Symfony project with PHP-CS-Fixer's @Symfony rules, thanks to @Arkounay

  • ClassAttributesSeparation: move a member written on the line of its attribute or docblock below it, like PHP-CS-Fixer (#429)
  • PhpdocAlign: read tag types with PHP-CS-Fixer's TypeExpression regex; unmatched lines are left alone and end the aligned group (#431)
  • NoWhitespaceBeforeCommaInArray, MethodArgumentSpace: treat array destructuring like PHP-CS-Fixer (#432)
  • NoSuperfluousPhpdocTags: remove untyped tags and tags that only lack null against the native type (#433)
  • SwitchCaseSpace: fix the cases of a switch even when its default is already tidy (#434)
  • NoUnneededControlParentheses: check every parenthesis pair, not only the whole operand (#435)

Blink slevomat fixes, thanks to @mwernaert

  • NullableTypeForNullDefaultValue, ParameterTypeHintSpacing: no more panic on use function imports (#424, #422)
  • UselessSemicolon: keep the semicolon after new readonly class {} and attributed anonymous classes (#425, #423)
  • ClassConstantTypeHint, UnusedUses and other sniffs: find the body of a backed enum (#426)