Releases: PHP-CS-Fixer/PHP-CS-Fixer
Releases · PHP-CS-Fixer/PHP-CS-Fixer
v3.68.1 Persian Successor
What's Changed
- chore:
AutoReview/CiConfigurationTest
- handle failure of reading files by @keradus in #8375 - CI:
Docker
- check allcompose
services by @keradus in #8370 - deps: bump alpine from 3.18.4 to 3.21.2 by @dependabot in #8362
- deps: bump alpine from 3.18 to 3.21 by @keradus in #8377
- refactor: Tokens::clearEmptyTokens - optimize cache handling by @keradus in #8335
Full Changelog: v3.68.0...v3.68.1
v3.68.0 Persian Successor
What's Changed
- feat: Add stripos to modernize_strpos rule by @antoniovj1 in #8019
- chore:
FullyQualifiedStrictTypesFixer
- reduce conditions count by @keradus in #8368 - test:
PhpUnitSetUpTearDownVisibilityFixer
- extend test for anonymous classes by @keradus in #8369
New Contributors
- @antoniovj1 made their first contribution in #8019
Full Changelog: v3.67.1...v3.68.0
v3.67.1 Persian Successor
What's Changed
- fix:
FullyQualifiedStrictTypesFixer
- support for importing return types in arrow functions by @kubawerlos in #8367 - fix:
PhpUnitSetUpTearDownVisibilityFixer
- do not touch anonymous classes by @kubawerlos in #8366 - CI: Introduce PHP compatibility check by @Wirone in #7844
- chore:
PHPStan
- upgrade to 2.1 by @keradus in #8355 - chore: dependabot integration by @keradus in #8357
- chore: allow for class-string in doc types of rule options by @keradus in #8358
- chore: CS: Move data provider methods after their test method by @mvorisek in #8302
- deps: bump docker/build-push-action from 5 to 6 by @dependabot in #8361
- docs: update installation instructions by @keradus in #8356
New Contributors
- @dependabot made their first contribution in #8361
Full Changelog: v3.67.0...v3.67.1
v3.67.0 Persian Successor
What's Changed
- chore: simplify loops that are using
end
/prev
functions by @kubawerlos in #8352 - feat: Introduce
general_attribute_remove
fixer by @raffaelecarelle in #8339
New Contributors
- @raffaelecarelle made their first contribution in #8339
Full Changelog: v3.66.2...v3.67.0
v3.66.2 Persian Successor
What's Changed
- chore: remove extra check, never happening by @keradus in #8348
- chore: Tokens - minor performance and types optimizations by @keradus in #8349
- chore: Tokens - cleanup by @keradus in #8350
- chore: do not use bitwise "or" assignment operator by @kubawerlos in #8346
- chore: remove impossible
@throws
annotation by @kubawerlos in #8353
Full Changelog: v3.66.1...v3.66.2
v3.66.1 Persian Successor
What's Changed
- docs:
PhpUnitTestCaseStaticMethodCallsFixer
- fix type ofmethods
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 Persian Successor
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
- @d-s-codappix made their first contribution in #8319
Full Changelog: v3.65.0...v3.66.0
v3.65.0 Persian Successor
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
ifCoversMethod
/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|
inTypeExpression
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
inGroupImportFixer
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
tonon-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
- @elkhasa made their first contribution in #8080
- @MrYamous made their first contribution in #8269
- @mariusjp made their first contribution in #8268
- @oprypkhantc made their first contribution in #8280
Full Changelog: https://github.com/PHP-CS-Fi...
v3.64.0 Space Sets
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
What's Changed
- fix:
FullyQualifiedStrictTypesFixer
- reset cache even if there is nouse
by @kubawerlos in #8183
Full Changelog: v3.63.1...v3.63.2