From a475d44f82301811bfab66a90df9cab65ebc1a13 Mon Sep 17 00:00:00 2001
From: Benjamin Franzke <ben@bnf.dev>
Date: Wed, 25 Oct 2023 06:29:24 +0200
Subject: [PATCH] [TASK] Fix php-cs-fixer config

Enable all current PER-CS2.0 rules in order to reflect our current
state of coding style. This was missed in #102240 because pre merge
didn't perform a full CGL run when @PER was switched to @PER-CS1.0.

Resolves: #102247
Related: #102240
Releases: main, 12.4, 11.5
Change-Id: I0e1c833ad99c4e06767dee8a2c4bcb2bdee6eb68
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81542
Reviewed-by: Benjamin Franzke <ben@bnf.dev>
Tested-by: Benjamin Franzke <ben@bnf.dev>
Tested-by: core-ci <typo3@b13.com>
---
 Build/php-cs-fixer/config.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Build/php-cs-fixer/config.php b/Build/php-cs-fixer/config.php
index a64a5e44ea18..375a41ae3462 100644
--- a/Build/php-cs-fixer/config.php
+++ b/Build/php-cs-fixer/config.php
@@ -56,9 +56,14 @@ return (new \PhpCsFixer\Config())
         'braces' => ['allow_single_line_closure' => true],
         'cast_spaces' => ['space' => 'none'],
         'compact_nullable_typehint' => true,
+        // @todo: Can be dropped once we enable @PER-CS2.0
         'concat_space' => ['spacing' => 'one'],
         'declare_equal_normalize' => ['space' => 'none'],
         'dir_constant' => true,
+        // @todo: Can be dropped once we enable @PER-CS2.0
+        'function_declaration' => [
+            'closure_fn_spacing' => 'none',
+        ],
         'function_typehint_space' => true,
         'lowercase_cast' => true,
         'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
-- 
GitLab