v3.47.0
版本发布时间: 2024-01-15 23:36:09
PHP-CS-Fixer/PHP-CS-Fixer最新发布版本:v3.64.0(2024-08-31 07:09:51)
What's Changed
- refactor: increase performance by ~7% thanks to Tokens::block*Cache hit increased by ~12% by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/6176
- refactor: Tokens - fast check for non-block in 'detectBlockType', evaluate definitions only once in 'getBlockEdgeDefinitions' by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7655
- refactor: Tokens::clearEmptyTokens - play defensive with cache clearing by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7658
- feat: Add support for official Docker images of Fixer by @hgiesenow and @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7555
- feat: Introduce
heredoc_closing_marker
fixer by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7660 - feat: Introduce
multiline_string_to_heredoc
fixer by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7665 - feat: Introduce
numeric_literal_separator
fixer by @muuvmuuv and @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/6761 - feat: Add
spacing
option toPhpdocAlignFixer
by @kusab85 in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/6505 - feat: Add
union_types
option tophpdoc_to_param_type
,phpdoc_to_property_type
, andphpdoc_to_return_type
fixers by @localheinz in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7672 - feat: Support typed properties and attributes in
fully_qualified_strict_types
by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7659 - feat:
@PhpCsFixer
ruleset - enableno_whitespace_before_comma_in_array.after_heredoc
by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7670 - feat:
no_superfluous_phpdoc_tags
- support for arrow function by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7666 - feat: Simplify closing marker when possible in
heredoc_closing_marker
fixer by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7676 - fix: Several improvements for
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 - fix:
fully_qualified_strict_types
withleading_backslash_in_global_namespace
enabled - handle reserved types in phpDoc by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7648 - fix:
BinaryOperatorSpacesFixer
- align correctly when multiple shifts occurs in single line by @wadakatu in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7593 - fix:
ClassReferenceNameCasingFixer
capitalizes the property name after the nullsafe operator by @erickskrauch in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7696 - fix:
no_superfluous_phpdoc_tags
must honor multiline docs by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7697 - fix:
NoSpaceAroundDoubleColonFixer
must run beforeMethodChainingIndentationFixer
by @mho22 in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7723 - fix:
numeric_literal_separator
- Handle zero-leading floats properly by @muuvmuuv in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7737 - fix: Improve progress bar visual layer by @Slamdunk in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7708
- fix: indentation of control structure body without braces by @julienfalque in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7663
- fix: make sure all PHP extensions required by PHPUnit are installed by @kubawerlos in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7727
- fix:
PhpdocToReturnTypeFixerTest
- support for arrow functions by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7645 - fix:
SimplifiedNullReturnFixer
- support array return typehint by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7728 - fix: Support numeric values without leading zero in
numeric_literal_separator
by @muuvmuuv in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7735 - chore: better identify EXPERIMENTAL rules by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7729
- chore: fix issue detected by unlocked PHPStan + upgrade dev-tools by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7678
- chore: handle extract() by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7684
- chore: Mention contributors in app info by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7668
- chore: no need to mark private methods as internal by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7715
- chore:
ProjectCodeTests
- dry for function usage extractions by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7690 - chore: reduce PHPStan baseline by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7644
- chore: use numeric literal separator for PHP version IDs by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7712
- chore: use
numeric_literal_separator
for project by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7713 - chore:
Utils::sortElements
- better typing by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7646 - CI: Allow running Stale Bot on demand by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7711
- CI: Fix PHP 8.4 by @mvorisek and @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7702
- CI: Give write permissions to Stale Bot by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7716
- CI: Use
actions/stale
v9 by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7710 - docs: Add information about allowing maintainers to update PRs by @Wirone in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7683
- docs: CONTRIBUTING.md - update Opening a PR by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7691
- docs: Display/include tool info/version by default in commands and reports by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7733
- DX:
NumericLiteralSeparatorFixer
- change default strategy touse_separator
by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7730 - DX: fix deprecation tests warnings for PHP 7.4 by @mvorisek in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7725
- DX: update
host.docker.internal
in Compose override template by @julienfalque in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7661 - test: ensure we do not forget to run any test related to
short_open_tag
by @keradus in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7638
New Contributors
- @hgiesenow made their first contribution in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7555
- @erickskrauch made their first contribution in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7696
- @mho22 made their first contribution in https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7723
Full Changelog: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.46.0...v3.47.0
1、 php-cs-fixer.phar 2.69MB
2、 php-cs-fixer.phar.asc 566B