A tool to automatically fix PHP Coding Standards issues
PhpUnitDedicateAssertFixer
(fixes PHPStan/PHP8.3 failures) by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7999
ConstantCaseFixer
- do not touch typed constants by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7998
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.56.0...v3.56.1
TrailingCommaInMultilineFixer
- handle trailing comma in language constructs by @OndraM in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7989, https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7990
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.55.0...v3.56.0
OrderedAttributesFixer
by @HypeMC and @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7395
PhpUnitAttributesFixer
- fix for #[RequiresPhp]
exceeding its constructor parameters by @paulbalandan in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7966
list
type in PHPDocs by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7975
RuleSetsTest
- assert that Fixer is configurable by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7961
PhpUnitDataProviderNameFixer
- follow config creation pattern by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7980
CodeHasher
by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7984
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.54.0...v3.55.0
PhpUnitAttributesFixer
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7831
PhpUnitTestClassRequiresCoversFixer
- do not add annotation when there are attributes by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7880
PhpUnitMethodCasingFixer
- do not double underscore by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7949
FullyQualifiedStrictTypesFixer
- do not add imports before PHP opening tag by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7955
FullyQualifiedStrictTypesFixerTest
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7954
PhpdocNoAccessFixerTest
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7933
PhpUnitStrictFixerTest
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7938
PhpUnitMethodCasingFixerTest
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7948
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.53.0...v3.54.0
PhpdocArrayTypeFixer
- JIT stack limit exhausted by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7895
@PHP84Migration
introduction by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7774
list
over array
in more places by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7905
AttributeAnalysis
by @HypeMC in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7909
array_filter
function usages by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7923
phpstan/phpstan-strict-rules
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7924
trim
call by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7930
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.52.1...v3.53.0
PhpCsFixer\Tokenizer\Tokens::setSize
return type by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7900
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.52.0...v3.52.1
@Symfony:risky
- add no_unreachable_default_argument_value
by @gharlan in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7863
PhpCsFixer
ruleset - enable nullable_type_declaration_for_default_null_value
by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7870
array_indentation
to PER-CS2.0
ruleset by @VincentLanglet in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7881
no_useless_concat_operator
- do not break variable by @tamiroh in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7827
TokensAnalyzer
- handle unary operator in arrow functions by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7862
TypeExpression
- fix "JIT stack limit exhausted" error by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7843
nullable_type_declaration_for_default_null_value
- deprecate option that is against @PHP84Migration
by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7872
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.51.0...v3.52.0
@Symfony
- add nullable_type_declaration by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7856
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.50.0...v3.51.0
MbStrFunctionsFixer
- add support for mb_trim
, mb_ltrim
and mb_rtrim
functions by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7840
no_superfluous_phpdoc_tags
- introduce allow_hidden_params
option by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7743
NoEmptyPhpdocFixer
- do not leave empty line after removing PHPDoc by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7820
PhpdocArrayTypeFixer
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7812
NamespaceUsesAnalyzer
by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7814
ExecutorWithoutErrorHandler
- remove invalid PHP 7.4 type by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7845
fully_qualified_strict_types
must honor template/local type identifiers by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7724
MethodArgumentSpaceFixer
- do not break heredoc/nowdoc by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7828
NumericLiteralSeparatorFixer
- do not change float
to int
when there is nothing after the dot by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7805
PhpUnitStrictFixer
- do not crash on property having the name of method to fix by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7804
SingleSpaceAroundConstructFixer
- correctly recognise multiple constants by @kubawerlos and @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7700
TypeExpression
- handle array shape key with dash by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7841
<…>
by @gharlan in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7817
fully_qualified_strict_types
fixer by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7719
@large
on method level by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7832
@medium
on method level by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7833
symfony/var-dumper
in dev tools by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7795
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.49.0...v3.50.0
string_implicit_backslashes
as escape_implicit_backslashes
replacement by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7669
PhpdocListTypeFixer
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7796
ordered_types
to @Symfony
by @VincentLanglet in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7356
@PhpCsFixer
ruleset - enable php_unit_data_provider_static
by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7685
ClassKeywordFixer
must run before FullyQualifiedStrictTypesFixer
by @krzysztofrewak in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7767
LowercaseStaticReferenceFixer
- do not change typed constants by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7775
TypeExpression
- do not break type using walkTypes
method by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7785
ClassDefinitionFixer
for anonymous class with PHPDoc/attribute on separate line by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7546
function_to_constant
get_class()
replacement by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7770
PhpdocTypesFixer
- handle more complex types by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7791
gitlab
reporter in GitLab integration example by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7764
DescribeCommand
- better handling of deprecations by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7778
topic/core
issues/PRs from Stale Bot by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7788
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.48.0...v3.49.0