Skip to content

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

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

v3.61.1 7th Gear

31 Jul 14:33
v3.61.1
94a8718
Compare
Choose a tag to compare

What's Changed

  • fix: NoSuperfluousPhpdocTagsFixer - fix "Undefined array key 0" error by @kubawerlos in #8150

Full Changelog: v3.61.0...v3.61.1

v3.61.0 7th Gear

31 Jul 08:18
v3.61.0
737a24b
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.60.0...v3.61.0

v3.60.0 7th Gear

25 Jul 09:27
v3.60.0
e595e4e
Compare
Choose a tag to compare

What's Changed

  • feat: PhpUnitAttributesFixer - add option to keep annotations by @kubawerlos in #8090
  • feat: Add sprintf in the list of compiler optimized functions by @stof in #8092
  • chore: cleanup TokensAnalyzerTest by @kubawerlos in #8123
  • chore: cleanup tests that had required PHP 7.4 ages ago by @kubawerlos in #8122
  • chore: fix example issue reported by reportPossiblyNonexistentGeneralArrayOffset from PHPStan by @keradus in #8089
  • chore: NoSuperfluousPhpdocTagsFixer - no need to call heavy toComparableNames method to add null type by @keradus in #8132
  • chore: PHPStan 11 array rules by @keradus in #8011
  • chore: PhpUnitSizeClassFixerTest - solve PHP 8.4 issues by @keradus in #8105
  • chore: reduce PHPStan errors in PhpUnitAttributesFixer by @keradus in #8091
  • chore: reuse test methods by @kubawerlos in #8119
  • CI: check autoload by @kubawerlos in #8121
  • CI: Update PHPStan to 1.11.8 by @kubawerlos in #8133
  • deps: upgrade dev-tools by @keradus in #8102
  • DX: check for duplicated test data by @kubawerlos in #8131
  • DX: check for duplicated test methods (as AutoReview test) by @kubawerlos in #8134
  • DX: check for duplicated test methods by @kubawerlos in #8124
  • DX: do not exclude duplicates that are clearly mistakes by @kubawerlos in #8135
  • DX: Dump offsetAccess.notFound errors to baseline by @Wirone in #8107
  • fix: no_useless_concat_operator - do not break variable (2) by @tamiroh in #7927
  • fix: NullableTypeDeclarationFixer - don't convert standalone null into nullable union type by @kayw-geek in #8098
  • fix: NullableTypeDeclarationFixer - don't convert standalone NULL into nullable union type by @kubawerlos in #8111
  • fix: NullableTypeDeclarationFixer - insert correct token by @kubawerlos in #8118
  • fix: PhpUnitAttributesFixer - handle multiple annotations of the same name by @kubawerlos in #8075
  • fix: Better way of walking types in TypeExpression by @mvorisek in #8076
  • fix: CI for PHP 8.4 by @kubawerlos in #8114
  • fix: update TokensTest to shrink PHPStan's baseline by @kubawerlos in #8112

Full Changelog: v3.59.3...v3.60.0

v3.59.3 7th Gear

16 Jun 14:17
v3.59.3
30ba9ec
Compare
Choose a tag to compare

What's Changed

  • refactor: refactor to templated trait+interface by @keradus in #7988

Full Changelog: v3.59.2...v3.59.3