From e91e74514ecf90e23e246c04d86b4408e8bc74c7 Mon Sep 17 00:00:00 2001 From: Joseph Scott Date: Mon, 20 Jan 2025 09:15:34 -0700 Subject: [PATCH] Set 'ordered_imports' -> 'imports_order' to `[ 'const', 'class', 'function' ]` --- CHANGELOG.md | 1 + src/josephscott/phpcsfixer-config.php | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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,