- Add support for PHP 8.4
- Fix
multiline_whitespace_before_semicolons
configuration
- Move the semicolon to the new line for chained calls (
multiline_whitespace_before_semicolons
)
- Reset rules:
- Use PER Coding Style 2.0
- Remove unused imports
- Ordered imports
- Trim array spaces
- Ordered Types with
null
always last - Internal PHPUnit test cases
- Allow use of newer PHP CS Fixer versions
- Add support for PHP 8.3
- Replace deprecated
function_typehint_space
withtype_declaration_spaces
- Replace deprecated
no_spaces_inside_parenthesis
withspaces_inside_parentheses
- Replaced deprecated
no_blank_lines_before_namespace
andsingle_blank_line_before_namespace
rules withblank_lines_before_namespace
- Changed
php_unit_test_annotation
style fromprefix
toannotation
- Removed
friendsofphp/php-cs-fixer
as a direct dependency (the recommended way is not to use it as a dev dependency) - Removed configs for PHP 7.4 and 8.0
- Changed directory structure to align with
ergebnis/php-cs-fixer-config-template
- Made all common rules explicit
global_namespace_import
: Imports or fully qualifies global classes/functions/constants.- Re-enable for classes, constants, and functions
native_function_invocation
: Add leading\
before function invocation to speed up resolving- Enable only for
@compiler_optimized
functions and remove\
of function calls not meant to have it.
- Enable only for
global_namespace_import
: Imports or fully qualifies global classes/functions/constants.- Enable only for classes
- Fixes rule sets to be compatible with PHP 7.4
- Fixes PHP version requirements to allow PHP 7.4 and PHP 8.0
- Rules extend the Ergebnis rules with the following modifications:
blank_line_between_import_groups
: Blank lines are put between import groupsglobal_namespace_import
: classes and functions are importedphpdoc_align
: PHPDoc items are left-alignedphpdoc_types_order
: types are not sorted,null
is always lastphp_unit_test_class_requires_covers
: Tests don't require@covers
annotationsyoda_style
: Condition styles are not enforced