Skip to content

Releases: PHP-CS-Fixer/PHP-CS-Fixer

v3.67.0 Persian Successor

08 Jan 10:18
v3.67.0
0ad34c7
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.66.2...v3.67.0

v3.66.2

07 Jan 09:22
v3.66.2
25addd3
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.66.1...v3.66.2

v3.66.1

05 Jan 14:43
v3.66.1
cde1867
Compare
Choose a tag to compare

What's Changed

  • docs: PhpUnitTestCaseStaticMethodCallsFixer - fix type of methods option and add example with it by @kubawerlos in #8338
  • chore: NoMultipleStatementsPerLineFixer - be aware of PHP 8.4 property hooks by @keradus in #8344
  • chore: update legacy deps by @keradus in #8342
  • chore: fix CI for Windows by @kubawerlos in #8326
  • deps: update box by @keradus in #8336
  • chore: TernaryToElvisOperatorFixer - improvements based on PHPStan detections by @keradus in #8345

Full Changelog: v3.66.0...v3.66.1

v3.66.0

29 Dec 13:46
v3.66.0
5f5f2a1
Compare
Choose a tag to compare

What's Changed

  • feat: UseArrowFunctionsFixer - support multiline statements by @kubawerlos in #8311
  • feat: PhpUnitTestCaseStaticMethodCallsFixer - cover PHPUnit v11.5 methods by @keradus in #8314
  • feat: Tokenizer - initial support for PHP 8.4 property hooks by @keradus in #8312
  • feat: PhpUnitTestCaseStaticMethodCallsFixer - support createStub by @d-s-codappix in #8319
  • feat: PhpUnitTestCaseStaticMethodCallsFixer - make sure all static protected methods are handled by @kubawerlos in #8327
  • fix: NullableTypeDeclarationFixer - do not break multi-line declaration by @kubawerlos in #8331
  • test: CiConfigurationTest - drop not needed condition, logic is checked in upcoming assertion by @keradus in #8303
  • chore: DotsOutput - more const, better typing by @keradus in #8318
  • chore: more const, better typing by @keradus in #8320
  • chore: upgrade PHPStan by @keradus in #8321
  • chore: temporarily prevent symfony/process 7.2+ by @keradus in #8322
  • chore: add more typehints by @keradus in #8325
  • chore: mark classes as readonly by @keradus in #8275
  • chore: Tokens - simplify (un)registerFoundToken types by @keradus in #8328
  • chore: BraceTransformer - don't touch curly index braces since 8.4, as it's not a valid syntax anymore by @keradus in #8313
  • docs: Tokens - fix docs by @keradus in #8332
  • CI: enable phpdoc_to_property_type on php-lowest by @keradus in #8324

New Contributors

Full Changelog: v3.65.0...v3.66.0

v3.65.0 Persian Successor

25 Nov 00:42
v3.65.0
79d4f3e
Compare
Choose a tag to compare

What's Changed

  • feat: Ability to set upper limit when using CPU auto-detection by @oprypkhantc in #8280
  • feat: create @PHP82Migration:risky ruleset by @kubawerlos in #8277
  • feat: Impl. TypeExpression::mapTypes() by @mvorisek in #8077
  • feat: Parse array/generic/nullable type into inner expression by @mvorisek in #8106
  • feat: phpdoc_to_property_type - handle virtual types and null initialization, enable in php-highest CI job by @keradus in #8283
  • feat: Store phpdoc offset in DataProviderAnalysis by @mvorisek in #8226
  • feat: Support for complex PHPDoc types in fully_qualified_strict_types by @mvorisek in #8085
  • fix: BlankLineAfterOpeningTagFixer - add blank line in file starting with multi-line comment by @kubawerlos in #8256
  • fix: MultilineWhitespaceBeforeSemicolonsFixer - do not produce syntax error when there is a meaningful token after semicolon by @kubawerlos in #8230
  • fix: NullableTypeDeclarationFixer - do not break syntax when there is no space before ? by @kubawerlos in #8224
  • fix: PhpUnitDataProvider(.+)Fixer - do not omit when there is an attribute between PHPDoc and test method by @kubawerlos in #8185
  • fix: PhpUnitDataProviderNameFixer - for an attribute between PHPDoc and test method by @kubawerlos in #8217
  • fix: Do not mark with @coversNothing if CoversMethod/CoversFunction attribute is used by @mariusjp in #8268
  • fix: enum-case mistaken for const invocation by @SpacePossum in #8190
  • fix: fix typing of few properties wrongly typed as non-nullable by @keradus in #8285
  • fix: fix typing property wrongly typed as non-nullable by @keradus in #8290
  • fix: MethodChainingIndentationFixer does not fix indentation of last chained property by @elkhasa in #8080
  • fix: NoSuperfluousPhpdocTagsFixer - Remove superfluous phpdoc of parameter with attribute by @VincentLanglet in #8237
  • fix: parsing mixed & and | in TypeExpression by @mvorisek in #8210
  • fix: proper base class used for AbstractDoctrineAnnotationFixer templates generation by @keradus in #8291
  • fix: Properly recognise constants in foreach loops by @SpacePossum in #8203
  • fix: Tokens::overrideRange() block cache pruning by @mvorisek in #8240
  • chore: add todo for PHP v8 by @keradus in #8274
  • chore: auto-fallback to sequential runner if single CPU would handle it by @keradus in #8154
  • chore: block changing tokens collection size using PhpCsFixer\Tokenizer\Tokens::setSize by @kubawerlos in #8257
  • chore: bump dev-tools by @keradus in #8245
  • chore: bump dev-tools by @keradus in #8286
  • chore: Cheaper file check first by @mvorisek in #8252
  • chore: check for priority tests correctly by @kubawerlos in #8221
  • chore: ConfigInterface - better types by @keradus in #8244
  • chore: do not call Tokens::setSize in GroupImportFixer by @kubawerlos in #8253
  • chore: do not use Reflection*::setAccessible by @kubawerlos in #8264
  • chore: fix priority tests by @kubawerlos in #8223
  • chore: Fix typos in AbstractFixerTestCase by @vudaltsov in #8247
  • chore: GithubClient - make URL injectable by @keradus in #8272
  • chore: Implement PHPStan Preg::match() extensions by @staabm in #8103
  • chore: mark remaining Analysis as @internal by @keradus in #8284
  • chore: PHPStan - upgrade to v2 by @keradus in #8288
  • chore: reduce amount of class mutable properties by @keradus in #8281
  • chore: remove from priority tests exceptions tests that are not actually exceptions by @kubawerlos in #8222
  • chore: remove incorrect priority tests by @kubawerlos in #8231
  • chore: remove not needed PHP version requirements in descriptions by @kubawerlos in #8265
  • chore: remove unnecessary methods by @kubawerlos in #8200
  • chore: tests/Tokenizer/Transformer - better typehinting by @keradus in #8243
  • chore: Token - remove 'changed' property by @keradus in #8273
  • chore: Token::getContent() phpdoc return type by @mvorisek in #8236
  • chore: update checkbashisms to 2.24.1 by @kubawerlos in #8258
  • chore: update dev dependencies in root by @keradus in #8289
  • chore: update PHPStan to 1.12.9 by @keradus in #8271
  • chore: use null coalescing assignment operator where possible by @kubawerlos in #8219
  • CI: allow macos to fail by @keradus in #8194
  • CI: build phar on PHP 8.3 by @keradus in #8195
  • CI: drop matrix for single-matrix-entry jobs of SCA and Deployment checks by @keradus in #8193
  • CI: Ensure php-cs-fixer PHP compatibility by @Wirone in #8235
  • CI: Ensure php-cs-fixer PHP compatibility /part by @keradus in #8241
  • CI: generate and execute code in assert by @kubawerlos in #8207
  • CI: update PHPStan to 1.12.2 by @kubawerlos in #8198
  • CI: update PHPStan to 1.12.3 by @kubawerlos in #8204
  • CI: use phpstan-symfony by @keradus in #8287
  • depr: ConfigInterface::getPhpExecutable() and ConfigInterface::setPhpExecutable() by @keradus in #8192
  • deps: add composer-smaller-lock by @kubawerlos in #8263
  • deps: Update PHPStan to 1.12.4 by @Wirone in #8215
  • deps: Update PHPStan to 1.12.5 by @Wirone in #8218
  • deps: update PHPStan to 1.12.7 by @kubawerlos in #8255
  • docs: fix unconsistency in config doc by @MrYamous in #8269
  • docs: mention github action example instead of travis-ci by @kubawerlos in #8250
  • DX: Cover php-cs-fixer file with static analysis by @mvorisek in #8229
  • DX: Make TypeExpression API more explicit about composite types by @Wirone in #8214
  • refactor: Rename newly introduced option by @Wirone in #8293
  • refactor: Runner - Enhance eventing system by @Wirone in #8276
  • refactor: Runner - make 4.0 TODOs easier to understand by @keradus in #8196
  • refactor: update _AttributeItems to non-empty-list<_AttributeItem> to allow using single attribute item by @kubawerlos in #8199
  • refactor: use arrow functions in more places by @keradus in #8294
  • test: @PHP82Migration:risky - add integration tests by @keradus in #8278

New Contributors

Full Changelog: https://github.com/PHP-CS-Fi...

Read more

v3.64.0 Space Sets

30 Aug 23:09
v3.64.0
58dd9c9
Compare
Choose a tag to compare

What's Changed

  • feat: Update PSR2, PSR12 and PER-CS2 with single_space_after_... config by @SpacePossum in #8171
  • feat: Symfony.trailing_comma_in_multiline - adjust configuration by @keradus in #8161
  • feat: Symfony - adjust configuration for sets by @keradus in #8188
  • CI: Update PHPStan to 1.12.0 and fix the error that appeared by @kubawerlos in #8184

Full Changelog: v3.63.2...v3.64.0

v3.63.2 7th Gear

28 Aug 10:48
v3.63.2
9d427f3
Compare
Choose a tag to compare

What's Changed

  • fix: FullyQualifiedStrictTypesFixer - reset cache even if there is no use by @kubawerlos in #8183

Full Changelog: v3.63.1...v3.63.2

v3.63.1 7th Gear

26 Aug 14:03
v3.63.1
ee3cc2e
Compare
Choose a tag to compare

v3.63.0 7th Gear

26 Aug 13:59
v3.63.0
4c691dc
Compare
Choose a tag to compare

What's Changed

  • feat: SingleImportPerStatementFixer - remove braces for single import by @javaDeveloperKid in #8156
  • feat: Add array_destructuring as option for trailing_comma_in_multiline by @SpacePossum in #8172
  • feat: TrailingCommaInMultilineFixer - dynamically evaluate config against PHP version by @keradus in #8167
  • fix: PhpUnitAttributesFixer - fix priorities with PhpUnitDataProvider(.+)Fixer by @paulbalandan in #8169
  • fix: Do not shorten FQN for class resolution if imported symbol is not a class by @Wirone in #7705
  • fix: Ensure PHP binary path is used as a single CLI argument in parallel worker process by @BertvanHoekelen in #8180
  • chore: add tags for data providers that changes PHPStan's baseline by @kubawerlos in #8178
  • chore: add @return tags for data providers already having PHPDoc by @kubawerlos in #8176
  • chore: add @return tags for data providers that do not have array in data by @kubawerlos in #8179
  • chore: remove beStrictAboutTodoAnnotatedTests from PHPUnit's config by @kubawerlos in #8160
  • chore: remove duplicates from data providers by @kubawerlos in #8164
  • chore: remove/update duplicates from data providers that are copies in code by @kubawerlos in #8145
  • CI: Update PHPStan to 1.11.10 by @kubawerlos in #8163
  • CI: Update PHPStan to 1.11.11 and fix error that changed by @kubawerlos in #8174
  • docs: fix indent on rule date_time_create_from_format_call by @maxhelias in #8173

New Contributors

Full Changelog: v3.62.0...v3.63.0

v3.62.0 7th Gear

07 Aug 17:03
v3.62.0
627692f
Compare
Choose a tag to compare

What's Changed

  • chore: NewWithParenthesesFixer - create TODO to change the default configuration to match PER-CS2 by @keradus in #8148
  • feat: set new_with_parentheses for anonymous_class to false in PER-CS2.0 by @bonroyage in #8140

New Contributors

Full Changelog: v3.61.1...v3.62.0