chore(deps): update dependency friendsofphp/php-cs-fixer to v3
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| friendsofphp/php-cs-fixer | require-dev | major |
^2.16 -> ^3.0
|
Release Notes
FriendsOfPHP/PHP-CS-Fixer
v3.0.2
- bug #5816 FullyQualifiedStrictTypesFixer - fix for union types (kubawerlos, keradus)
- bug #5835 PhpdocTypesOrderFixer: fix for array shapes (kubawerlos)
- bug #5837 SingleImportPerStatementFixer - fix const and function imports (SpacePossum)
- bug #5844 PhpdocTypesOrderFixer: handle callable() type (Slamdunk)
- minor #5839 DX: automate checking 7.0 types on project itself (keradus)
- minor #5840 DX: drop v2 compatible config in project itself (keradus)
v3.0.1
- bug #5395 PhpdocTagTypeFixer: Do not modify array shapes (localheinz, julienfalque)
- bug #5678 UseArrowFunctionsFixer - fix for return without value (kubawerlos)
- bug #5679 PhpUnitNamespacedFixer - do not try to fix constant usage (kubawerlos)
- bug #5681 RegularCallableCallFixer - fix for function name with escaped slash (kubawerlos)
- bug #5687 FinalInternalClassFixer - fix for annotation with space after "@" (kubawerlos)
- bug #5688 ArrayIndentationFixer - fix for really long arrays (kubawerlos)
- bug #5690 PhpUnitNoExpectationAnnotationFixer - fix "expectedException" annotation with message below (kubawerlos)
- bug #5693 YodaStyleFixer - fix for assignment operators (kubawerlos)
- bug #5697 StrictParamFixer - fix for method definition (kubawerlos)
- bug #5702 CommentToPhpdocFixer - fix for single line comments starting with more than 2 slashes (kubawerlos)
- bug #5703 DateTimeImmutableFixer - fix for method definition (kubawerlos)
- bug #5718 VoidReturnFixer - do not break syntax with magic methods (kubawerlos)
- bug #5727 SingleSpaceAfterConstructFixer - Add support for
namespace(julienfalque) - bug #5730 Fix transforming deprecations into exceptions (julienfalque)
- bug #5738 TokensAnalyzer - fix for union types (kubawerlos)
- bug #5741 Fix constant invocation detection cases (kubawerlos)
- bug #5769 Fix priority between
phpdoc_to_property_typeandno_superfluous_phpdoc_tags(julienfalque) - bug #5774 FunctionsAnalyzer::isTheSameClassCall - fix for $this with double colon following (kubawerlos)
- bug #5779 SingleLineThrowFixer - fix for throw in match (kubawerlos)
- bug #5781 ClassDefinition - fix for anonymous class with trailing comma (kubawerlos)
- bug #5783 StaticLambdaFixer - consider parent:: as a possible reference to $this (fancyweb)
- bug #5791 NoBlankLinesAfterPhpdoc - Add T_NAMESPACE in array of forbidden successors (paulbalandan)
- bug #5799 TypeAlternationTransformer - fix for multiple function parameters (kubawerlos)
- bug #5804 NoBreakCommentFixer - fix for "default" in "match" (kubawerlos)
- bug #5805 SingleLineCommentStyleFixer - run after HeaderCommentFixer (kubawerlos)
- bug #5817 NativeFunctionTypeDeclarationCasingFixer - fix for union types (kubawerlos)
- bug #5823 YodaStyleFixer - yield support (SpacePossum)
- minor #4914 Improve PHPDoc types support (julienfalque, keradus)
- minor #5592 Fix checking for default config used in rule sets (kubawerlos)
- minor #5675 Docs: extend Upgrade Guide (keradus)
- minor #5680 DX: benchmark.sh - ensure deps are updated to enable script working across less-similar branches (keradus)
- minor #5689 Calculate code coverage on PHP 8 (kubawerlos)
- minor #5694 DX: fail on risky tests (kubawerlos)
- minor #5695 Utils - save only unique deprecations to avoid memory issues (PetrHeinz)
- minor #5710 [typo] add correct backquotes (PhilETaylor)
- minor #5711 Fix doc, "run-in" show-progress option is no longer present (mvorisek)
- minor #5713 Upgrade-Guide: fix typo (staabm)
- minor #5717 Run migration rules on PHP 8 (kubawerlos, keradus)
- minor #5721 Fix reStructuredText markup (julienfalque)
- minor #5725 Update LICENSE (exussum12)
- minor #5731 CI - Fix checkbashisms installation (julienfalque)
- minor #5736 Remove references to PHP 5.6 (kubawerlos, keradus)
- minor #5739 DX: more typehinting (keradus)
- minor #5740 DX: more type-related docblocks (keradus)
- minor #5746 Config - Improve deprecation message with details (SpacePossum)
- minor #5747 RandomApiMigrationFixer - better docs and better "random_int" support (SpacePossum)
- minor #5748 Updated the link to netbeans plugins page (cyberguroo)
- minor #5750 Test all const are in uppercase (SpacePossum)
- minor #5752 NoNullPropertyInitializationFixer - fix static properties as well (HypeMC)
- minor #5756 Fix rule sets descriptions (kubawerlos)
- minor #5761 Fix links in custom rules documentation (julienfalque)
- minor #5771 doc(config): change set's name (Kocal)
- minor #5777 DX: update PHPStan (kubawerlos)
- minor #5789 DX: update PHPStan (kubawerlos)
- minor #5808 Update PHPStan to 0.12.92 (kubawerlos)
- minor #5813 Docs: point to v3 in installation description (Jimbolino)
- minor #5824 Deprecate v2 (keradus)
- minor #5825 DX: update checkbashisms to v2.21.3 (keradus)
- minor #5826 SCA: check both composer files (keradus)
- minor #5827 ClassAttributesSeparationFixer - Add
trait_importsupport (SpacePossum) - minor #5831 DX: fix SCA violations (keradus)
v3.0.0
- bug #5164 Differ - surround file name with double quotes if it contains spacing. (SpacePossum)
- bug #5560 PSR2: require visibility only for properties and methods (kubawerlos)
- bug #5576 ClassAttributesSeparationFixer: do not allow using v2 config (kubawerlos)
- feature #4979 Pass file to differ (paulhenri-l, SpacePossum)
- minor #3374 show-progress option: drop run-in and estimating, rename estimating-max to dots (keradus)
- minor #3375 Fixers - stop exposing extra properties/consts (keradus)
- minor #3376 Tokenizer - remove deprecations and legacy mode (keradus)
- minor #3377 rules - change default options (keradus)
- minor #3378 SKIP_LINT_TEST_CASES - drop env (keradus)
- minor #3379 MethodArgumentSpaceFixer - fixSpace is now private (keradus)
- minor #3380 rules - drop rootless configurations (keradus)
- minor #3381 rules - drop deprecated configurations (keradus)
- minor #3382 DefinedFixerInterface - incorporate into FixerInterface (keradus)
- minor #3383 FixerDefinitionInterface - drop getConfigurationDescription and getDefaultConfiguration (keradus)
- minor #3384 diff-format option: drop sbd diff, use udiffer by default, drop SebastianBergmannDiffer and SebastianBergmannShortDiffer classes (keradus)
- minor #3385 ConfigurableFixerInterface::configure - param is now not nullable and not optional (keradus)
- minor #3386 ConfigurationDefinitionFixerInterface - incorporate into ConfigurableFixerInterface (keradus)
- minor #3387 FixCommand - forbid passing 'config' and 'rules' options together (keradus)
- minor #3388 Remove Helpers (keradus)
- minor #3389 AccessibleObject - drop class (keradus)
- minor #3390 Drop deprecated rules: blank_line_before_return, hash_to_slash_comment, method_separation, no_extra_consecutive_blank_lines, no_multiline_whitespace_before_semicolons and pre_increment (keradus)
- minor #3456 AutoReview - drop references to removed rule (keradus)
- minor #3659 use php-cs-fixer/diff ^2.0 (SpacePossum)
- minor #3681 CiIntegrationTest - fix incompatibility from 2.x line (keradus)
- minor #3740 NoUnusedImportsFixer - remove SF exception (SpacePossum)
- minor #3771 UX: always set error_reporting in entry file, not Application (keradus)
- minor #3922 Make some more classes final (ntzm, SpacePossum)
- minor #3995 Change default config of native_function_invocation (dunglas, SpacePossum)
- minor #4432 DX: remove empty sets from RuleSet (kubawerlos)
- minor #4489 Fix ruleset @PHPUnit50Migration:risky (kubawerlos)
- minor #4620 DX: cleanup additional, not used parameters (keradus)
- minor #4666 Remove deprecated rules: lowercase_constants, php_unit_ordered_covers, silenced_deprecation_error (keradus)
- minor #4697 Remove deprecated no_short_echo_tag rule (julienfalque)
- minor #4851 fix phpstan on 3.0 (SpacePossum)
- minor #4901 Fix SCA (SpacePossum)
- minor #5069 Fixed failing tests on 3.0 due to unused import after merge (GrahamCampbell)
- minor #5096 NativeFunctionInvocationFixer - BacktickToShellExecFixer - fix integration test (SpacePossum)
- minor #5171 Fix test (SpacePossum)
- minor #5245 Fix CI for 3.0 line (keradus)
- minor #5351 clean ups (SpacePossum)
- minor #5364 DX: Do not display runtime twice on 3.0 line (keradus)
- minor #5412 3.0 - cleanup (SpacePossum, keradus)
- minor #5417 Further BC cleanup for 3.0 (keradus)
- minor #5418 Drop src/Test namespace (keradus)
- minor #5436 Drop mapping of strings to boolean option other than yes/no (keradus)
- minor #5440 Change default ruleset to PSR-12 (keradus)
- minor #5477 Drop diff-format (keradus)
- minor #5478 Docs: Cleanup UPGRADE markdown files (keradus)
- minor #5479 ArraySyntaxFixer, ListSyntaxFixer - change default syntax to short (keradus)
- minor #5480 Tokens::findBlockEnd - drop deprecated argument (keradus)
- minor #5485 ClassAttributesSeparationFixer - drop deprecated flat list configuration (keradus)
- minor #5486 CI: drop unused env variables (keradus)
- minor #5488 Do not distribute documentation (szepeviktor)
- minor #5513 DX: Tokens::warnPhp8SplFixerArrayChange - drop unused method (keradus)
- minor #5520 DX: Drop IsIdenticalConstraint (keradus)
- minor #5521 DX: apply rules configuration cleanups for PHP 7.1+ (keradus)
- minor #5524 DX: drop support of very old deps (keradus)
- minor #5525 Drop phpunit-legacy-adapter (keradus)
- minor #5527 Bump required PHP to 7.1 (keradus)
- minor #5529 DX: bump required PHPUnit to v7+ (keradus)
- minor #5532 Apply PHP 7.1 typing (keradus)
- minor #5541 RuleSet - disallow null usage to disable the rule (keradus)
- minor #5555 DX: further typing improvements (keradus)
- minor #5562 Fix table row rendering for default values of array_syntax and list_syntax (derrabus)
- minor #5608 DX: new cache filename (keradus)
- minor #5609 Forbid old config filename usage (keradus)
- minor #5638 DX: remove Utils::calculateBitmask (keradus)
- minor #5641 DX: use constants for PHPUnit version on 3.0 line (keradus)
- minor #5643 FixCommand - simplify help (keradus)
- minor #5644 Token::toJson() - remove parameter (keradus)
- minor #5645 DX: YodaStyleFixerTest - fix CI (keradus)
- minor #5649 DX: YodaStyleFixerTest - fix 8.0 compat (keradus)
- minor #5650 DX: FixCommand - drop outdated/duplicated docs (keradus)
- minor #5656 DX: mark some constants as internal or private (keradus)
- minor #5657 DX: convert some properties to constants (keradus)
- minor #5669 Remove TrailingCommaInMultilineArrayFixer (kubawerlos, keradus)
v2.19.1
- bug #5395 PhpdocTagTypeFixer: Do not modify array shapes (localheinz, julienfalque)
- bug #5678 UseArrowFunctionsFixer - fix for return without value (kubawerlos)
- bug #5679 PhpUnitNamespacedFixer - do not try to fix constant usage (kubawerlos)
- bug #5681 RegularCallableCallFixer - fix for function name with escaped slash (kubawerlos)
- bug #5687 FinalInternalClassFixer - fix for annotation with space after "@" (kubawerlos)
- bug #5688 ArrayIndentationFixer - fix for really long arrays (kubawerlos)
- bug #5690 PhpUnitNoExpectationAnnotationFixer - fix "expectedException" annotation with message below (kubawerlos)
- bug #5693 YodaStyleFixer - fix for assignment operators (kubawerlos)
- bug #5697 StrictParamFixer - fix for method definition (kubawerlos)
- bug #5702 CommentToPhpdocFixer - fix for single line comments starting with more than 2 slashes (kubawerlos)
- bug #5703 DateTimeImmutableFixer - fix for method definition (kubawerlos)
- bug #5718 VoidReturnFixer - do not break syntax with magic methods (kubawerlos)
- bug #5727 SingleSpaceAfterConstructFixer - Add support for
namespace(julienfalque) - bug #5730 Fix transforming deprecations into exceptions (julienfalque)
- bug #5738 TokensAnalyzer - fix for union types (kubawerlos)
- bug #5741 Fix constant invocation detection cases (kubawerlos)
- bug #5769 Fix priority between
phpdoc_to_property_typeandno_superfluous_phpdoc_tags(julienfalque) - bug #5774 FunctionsAnalyzer::isTheSameClassCall - fix for $this with double colon following (kubawerlos)
- bug #5779 SingleLineThrowFixer - fix for throw in match (kubawerlos)
- bug #5781 ClassDefinition - fix for anonymous class with trailing comma (kubawerlos)
- bug #5783 StaticLambdaFixer - consider parent:: as a possible reference to $this (fancyweb)
- bug #5791 NoBlankLinesAfterPhpdoc - Add T_NAMESPACE in array of forbidden successors (paulbalandan)
- bug #5799 TypeAlternationTransformer - fix for multiple function parameters (kubawerlos)
- bug #5804 NoBreakCommentFixer - fix for "default" in "match" (kubawerlos)
- bug #5805 SingleLineCommentStyleFixer - run after HeaderCommentFixer (kubawerlos)
- bug #5817 NativeFunctionTypeDeclarationCasingFixer - fix for union types (kubawerlos)
- bug #5823 YodaStyleFixer - yield support (SpacePossum)
- minor #4914 Improve PHPDoc types support (julienfalque, keradus)
- minor #5680 DX: benchmark.sh - ensure deps are updated to enable script working across less-similar branches (keradus)
- minor #5689 Calculate code coverage on PHP 8 (kubawerlos)
- minor #5694 DX: fail on risky tests (kubawerlos)
- minor #5695 Utils - save only unique deprecations to avoid memory issues (PetrHeinz)
- minor #5710 [typo] add correct backquotes (PhilETaylor)
- minor #5717 Run migration rules on PHP 8 (kubawerlos, keradus)
- minor #5721 Fix reStructuredText markup (julienfalque)
- minor #5725 Update LICENSE (exussum12)
- minor #5731 CI - Fix checkbashisms installation (julienfalque)
- minor #5740 DX: more type-related docblocks (keradus)
- minor #5746 Config - Improve deprecation message with details (SpacePossum)
- minor #5747 RandomApiMigrationFixer - better docs and better "random_int" support (SpacePossum)
- minor #5748 Updated the link to netbeans plugins page (cyberguroo)
- minor #5750 Test all const are in uppercase (SpacePossum)
- minor #5752 NoNullPropertyInitializationFixer - fix static properties as well (HypeMC)
- minor #5756 Fix rule sets descriptions (kubawerlos)
- minor #5761 Fix links in custom rules documentation (julienfalque)
- minor #5777 DX: update PHPStan (kubawerlos)
- minor #5789 DX: update PHPStan (kubawerlos)
- minor #5808 Update PHPStan to 0.12.92 (kubawerlos)
- minor #5824 Deprecate v2 (keradus)
- minor #5825 DX: update checkbashisms to v2.21.3 (keradus)
- minor #5826 SCA: check both composer files (keradus)
- minor #5827 ClassAttributesSeparationFixer - Add
trait_importsupport (SpacePossum)
v2.19.0
- feature #4238 TrailingCommaInMultilineFixer - introduction (kubawerlos)
- feature #4592 PhpdocToPropertyTypeFixer - introduction (julienfalque)
- feature #5390 feature #4024 added a
list-filescommand (clxmstaab, keradus) - feature #5635 Add list-sets command (keradus)
- feature #5674 UX: Display deprecations to end-user (keradus)
- minor #5601 Always stop when "PHP_CS_FIXER_FUTURE_MODE" is used (kubawerlos)
- minor #5607 DX: new config filename (keradus)
- minor #5613 DX: UtilsTest - add missing teardown (keradus)
- minor #5631 DX: config deduplication (keradus)
- minor #5633 fix typos (staabm)
- minor #5642 Deprecate parameter of Token::toJson() (keradus)
- minor #5672 DX: do not test deprecated fixer (kubawerlos)
v2.18.7
- bug #5593 SingleLineThrowFixer - fix handling anonymous classes (kubawerlos)
- bug #5654 SingleLineThrowFixer - fix for match expression (kubawerlos)
- bug #5660 TypeAlternationTransformer - fix for "array" type in type alternation (kubawerlos)
- bug #5665 NullableTypeDeclarationForDefaultNullValueFixer - fix for nullable with attribute (kubawerlos)
- bug #5670 PhpUnitNamespacedFixer - do not try to fix constant (kubawerlos)
- bug #5671 PhpdocToParamTypeFixer - do not change function call (kubawerlos)
- bug #5673 GroupImportFixer - Fix failing case (julienfalque)
- minor #4591 Refactor conversion of PHPDoc to type declarations (julienfalque, keradus)
- minor #5611 DX: use method expectDeprecation from Symfony Bridge instead of annotation (kubawerlos)
- minor #5658 DX: use constants in tests for Fixer configuration (keradus)
- minor #5661 DX: remove PHPStan exceptions for "tests" from phpstan.neon (kubawerlos)
- minor #5662 Change wording from "merge" to "intersect" (jschaedl)
- minor #5663 DX: do not abuse "inheritdoc" tag (kubawerlos)
- minor #5664 DX: code grooming (keradus)
v2.18.6
- bug #5586 Add support for nullsafe object operator ("?->") (kubawerlos)
- bug #5597 Tokens - fix for checking block edges (kubawerlos)
- bug #5604 Custom annotations @type changed into @var (Leprechaunz)
- bug #5606 DoctrineAnnotationBracesFixer false positive (Leprechaunz)
- bug #5610 BracesFixer - fix braces of match expression (Leprechaunz)
- bug #5615 GroupImportFixer severely broken (Leprechaunz)
- bug #5617 ClassAttributesSeparationFixer - fix for using visibility for class elements (kubawerlos)
- bug #5618 GroupImportFixer - fix removal of import type when mixing multiple types (Leprechaunz)
- bug #5622 Exclude Doctrine documents from final fixer (ossinkine)
- bug #5630 PhpdocTypesOrderFixer - handle complex keys (Leprechaunz)
- minor #5554 DX: use tmp file in sys_temp_dir for integration tests (keradus)
- minor #5564 DX: make integration tests matching entries in FixerFactoryTest (kubawerlos)
- minor #5603 DX: DocumentationGenerator - no need to re-configure Differ (keradus)
- minor #5612 DX: use ::class whenever possible (kubawerlos)
- minor #5619 DX: allow XDebugHandler v2 (keradus)
- minor #5623 DX: when displaying app version, don't put extra space if there is no CODENAME available (keradus)
- minor #5626 DX: update PHPStan and way of ignoring flickering PHPStan exception (keradus)
- minor #5629 DX: fix CiIntegrationTest (keradus)
- minor #5636 DX: remove 'create' method in internal classes (keradus)
- minor #5637 DX: do not calculate bitmap via helper anymore (keradus)
- minor #5639 Move fix reports (classes and schemas) (keradus)
- minor #5640 DX: use constants for PHPUnit version (keradus)
- minor #5646 Cleanup YodaStyleFixerTest (kubawerlos)
v2.18.5
- bug #5561 NoMixedEchoPrintFixer: fix for conditions without curly brackets (kubawerlos)
- bug #5563 Priority fix: SingleSpaceAfterConstructFixer must run before BracesFixer (kubawerlos)
- bug #5567 Fix order of BracesFixer and ClassDefinitionFixer (Daeroni)
- bug #5596 NullableTypeTransformer - fix for attributes (kubawerlos, jrmajor)
- bug #5598 GroupImportFixer - fix breaking code when fixing root classes (Leprechaunz)
- minor #5571 DX: add test to make sure SingleSpaceAfterConstructFixer runs before FunctionDeclarationFixer (kubawerlos)
- minor #5577 Extend priority test for "class_definition" vs "braces" (kubawerlos)
- minor #5585 DX: make doc examples prettier (kubawerlos)
- minor #5590 Docs: HeaderCommentFixer - document example how to remove header comment (keradus)
- minor #5602 DX: regenerate docs (keradus)
v2.18.4
- bug #4085 Priority: AlignMultilineComment should run before every PhpdocFixer (dmvdbrugge)
- bug #5421 PsrAutoloadingFixer - Fix PSR autoloading outside configured directory (kelunik, keradus)
- bug #5464 NativeFunctionInvocationFixer - PHP 8 attributes (HypeMC, keradus)
- bug #5548 NullableTypeDeclarationForDefaultNullValueFixer - fix handling promoted properties (jrmajor, keradus)
- bug #5550 TypeAlternationTransformer - fix for typed static properties (kubawerlos)
- bug #5551 ClassAttributesSeparationFixer - fix for properties with type alternation (kubawerlos, keradus)
- bug #5552 DX: test relation between function_declaration and method_argument_space (keradus)
- minor #5540 DX: RuleSet - convert null handling to soft-warning (keradus)
- minor #5545 DX: update checkbashisms (keradus)
v2.18.3
- bug #5484 NullableTypeDeclarationForDefaultNullValueFixer - handle mixed pseudotype (keradus)
- minor #5470 Disable CI fail-fast (mvorisek)
- minor #5491 Support php8 static return type for NoSuperfluousPhpdocTagsFixer (tigitz)
- minor #5494 BinaryOperatorSpacesFixer - extend examples (keradus)
- minor #5499 DX: add TODOs for PHP requirements cleanup (keradus)
- minor #5500 DX: Test that Transformers are adding only CustomTokens that they define and nothing else (keradus)
- minor #5507 Fix quoting in exception message (gquemener)
- minor #5514 DX: PHP 7.0 integration test - solve TODO for random_api_migration usage (keradus)
- minor #5515 DX: do not override getConfigurationDefinition (keradus)
- minor #5516 DX: AbstractDoctrineAnnotationFixer - no need for import aliases (keradus)
- minor #5518 DX: minor typing and validation fixes (keradus)
- minor #5522 Token - add handling json_encode crash (keradus)
- minor #5523 DX: EregToPregFixer - fix sorting (keradus)
- minor #5528 DX: code cleanup (keradus)
Configuration
-
If you want to rebase/retry this MR, check this box.
This MR has been generated by Renovate Bot.
Edited by Thomas Praxl