packagist friendsofphp/php-cs-fixer v3.0.0
v3.0.0 Constitution

latest releases: dev-readonly, dev-master, dev-ccc...
3 years ago

The easiest way to update from v2.x is:

  • install v2.19 and run in verbose mode (php-cs-fixer fix -v) or in future mode (PHP_CS_FIXER_FUTURE_MODE=1 php-cs-fixer fix) to identify and fix deprecations
  • install v3.0 and follow upgrade guide

  • 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)

Don't miss a new php-cs-fixer release

NewReleases is sending notifications on new releases.