diff --git a/CHANGELOG.md b/CHANGELOG.md index 38e7de9..fbdd78c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## ??? : ???? - Tests via Github Actions +- Set 'ordered_imports' -> 'imports_order' to `[ 'const', 'class', 'function' ]` ## 0.0.3 : 2024-11-04 - Turn off `native_function_invocation` diff --git a/src/josephscott/phpcsfixer-config.php b/src/josephscott/phpcsfixer-config.php index 777494b..8da0f90 100644 --- a/src/josephscott/phpcsfixer-config.php +++ b/src/josephscott/phpcsfixer-config.php @@ -139,7 +139,10 @@ class PHPCSFixer_Config { 'normalize_index_brace' => true, 'not_operator_with_successor_space' => true, 'object_operator_without_whitespace' => true, - 'ordered_imports' => ['sort_algorithm' => 'alpha'], + 'ordered_imports' => [ + 'imports_order' => [ 'const', 'class', 'function' ], + 'sort_algorithm' => 'alpha' + ], 'psr_autoloading' => false, 'phpdoc_indent' => true, 'phpdoc_inline_tag_normalizer' => true,