A tool to automatically fix PHP Coding Standards issues
PhpdocTypesOrderFixer
Support DNF types by @smnandre in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7732
NoUselessConcatOperatorFixer
- do not remove new line by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7759
FullyQualifiedStrictTypesFixer
must run before OrderedInterfacesFixer
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7762
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.47.1...v3.48.0
FullyQualifiedStrictTypesFixer
- do not modify statements with property fetch and ::
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7749
FullyQualifiedStrictTypesFixer
- do not change case of the symbol when there's name collision between imported class and imported function by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7750
BinaryOperatorSpacesFixer
work as pre-v3.47 by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7751
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.47.0...v3.47.1
heredoc_closing_marker
fixer by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7660
multiline_string_to_heredoc
fixer by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7665
numeric_literal_separator
fixer by @muuvmuuv and @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/6761
spacing
option to PhpdocAlignFixer
by @kusab85 in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/6505
union_types
option to phpdoc_to_param_type
, phpdoc_to_property_type
, and phpdoc_to_return_type
fixers by @localheinz in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7672
fully_qualified_strict_types
by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7659
@PhpCsFixer
ruleset - enable no_whitespace_before_comma_in_array.after_heredoc
by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7670
no_superfluous_phpdoc_tags
- support for arrow function by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7666
heredoc_closing_marker
fixer by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7676
fully_qualified_strict_types
(respect declared symbols, relative imports, leading backslash in global namespace) by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7679
fully_qualified_strict_types
with leading_backslash_in_global_namespace
enabled - handle reserved types in phpDoc by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7648
BinaryOperatorSpacesFixer
- align correctly when multiple shifts occurs in single line by @wadakatu in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7593
ClassReferenceNameCasingFixer
capitalizes the property name after the nullsafe operator by @erickskrauch in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7696
no_superfluous_phpdoc_tags
must honor multiline docs by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7697
NoSpaceAroundDoubleColonFixer
must run before MethodChainingIndentationFixer
by @mho22 in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7723
numeric_literal_separator
- Handle zero-leading floats properly by @muuvmuuv in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7737
PhpdocToReturnTypeFixerTest
- support for arrow functions by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7645
SimplifiedNullReturnFixer
- support array return typehint by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7728
numeric_literal_separator
by @muuvmuuv in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7735
ProjectCodeTests
- dry for function usage extractions by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7690
numeric_literal_separator
for project by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7713
Utils::sortElements
- better typing by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7646
actions/stale
v9 by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7710
NumericLiteralSeparatorFixer
- change default strategy to use_separator
by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7730
host.docker.internal
in Compose override template by @julienfalque in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7661
short_open_tag
by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7638
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.46.0...v3.47.0
@PER-CS
(only behind PHP_CS_FIXER_FUTURE_MODE=1) by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7650
fully_qualified_strict_types
by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7653
leading_backslash_in_global_namespace
option enabled by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7654
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.45.0...v3.46.0
@PhpCsFixer
ruleset by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7629
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.44.0...v3.45.0
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.43.1...v3.44.0
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.43.0...v3.43.1
@PER-CS2.0
by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7625
@Symfony
set to @PER-CS2.0
by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7627
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.42.0...v3.43.0
fully_qualified_strict_types
fixer by @Jadro007 and @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/5620
fully_qualified_strict_types
by @SpacePossum and @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7459
composer-unused
by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7536
PHPUnit\Framework\TestCase
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7563
PhpCsFixer\Tests\TestCase
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7567
AbstractFixerTestCase::testProperMethodNaming
are not already fixed by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7588
PhpUnitNamespacedFixerTest::testClassIsFixed
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7564
symfony/phpunit-bridge
by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7578
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.41.1...v3.42.0
@testWith
to @dataProvider
by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7535
var
keyword by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7538
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.41.0...v3.41.1