From d114c5ac6474436091ed7cfe2613c81317daa424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Nowak?= Date: Wed, 13 May 2026 12:45:00 +0200 Subject: [PATCH 1/3] composer require friendsofphp/php-cs-fixer:v3.95.1 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e758feb..145e949 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ }, "require": { "php": ">=7.4", - "friendsofphp/php-cs-fixer": "v3.89.1", + "friendsofphp/php-cs-fixer": "v3.95.1", "composer-runtime-api": ">=2.0" }, "require-dev": { From 85f73dd105265a1ef6ee5e445591d3685fa26737 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Nowak?= Date: Wed, 13 May 2026 13:12:15 +0200 Subject: [PATCH 2/3] adjusted changes to newer version --- src/lib/PhpCsFixer/InternalConfigFactory.php | 8 ++++++-- .../expected_rules/5_0_rule_set/php_cs_fixer_rules.php | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lib/PhpCsFixer/InternalConfigFactory.php b/src/lib/PhpCsFixer/InternalConfigFactory.php index b2919b4..15e829d 100644 --- a/src/lib/PhpCsFixer/InternalConfigFactory.php +++ b/src/lib/PhpCsFixer/InternalConfigFactory.php @@ -89,8 +89,12 @@ public function buildConfig(): ConfigInterface $this->customRules, )); - if ($this->runInParallel && $config instanceof ParallelAwareConfigInterface) { - $config->setParallelConfig(ParallelConfigFactory::detect()); + if ($config instanceof ParallelAwareConfigInterface) { + $config->setParallelConfig( + $this->runInParallel + ? ParallelConfigFactory::detect() + : ParallelConfigFactory::sequential() + ); } return $config; diff --git a/tests/lib/PhpCsFixer/Sets/expected_rules/5_0_rule_set/php_cs_fixer_rules.php b/tests/lib/PhpCsFixer/Sets/expected_rules/5_0_rule_set/php_cs_fixer_rules.php index 8592751..6a446bb 100644 --- a/tests/lib/PhpCsFixer/Sets/expected_rules/5_0_rule_set/php_cs_fixer_rules.php +++ b/tests/lib/PhpCsFixer/Sets/expected_rules/5_0_rule_set/php_cs_fixer_rules.php @@ -208,4 +208,5 @@ 'fully_qualified_strict_types' => [ 'import_symbols' => true, ], + 'attribute_block_no_spaces' => true, ]; From 2aba09b6d9b1f9c8a8689f79f7aad33e62e8dc08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Nowak?= Date: Wed, 13 May 2026 13:47:03 +0200 Subject: [PATCH 3/3] Used nowdocs in \Ibexa\Tests\CodeStyle\PhpCsFixer\Rule\MultilineParametersFixerTest::provideFixCases --- .../Rule/MultilineParametersFixerTest.php | 134 +++++++++++------- 1 file changed, 79 insertions(+), 55 deletions(-) diff --git a/tests/lib/PhpCsFixer/Rule/MultilineParametersFixerTest.php b/tests/lib/PhpCsFixer/Rule/MultilineParametersFixerTest.php index 61f536c..6d6a1a8 100644 --- a/tests/lib/PhpCsFixer/Rule/MultilineParametersFixerTest.php +++ b/tests/lib/PhpCsFixer/Rule/MultilineParametersFixerTest.php @@ -41,76 +41,100 @@ public function testFix( public static function provideFixCases(): iterable { yield 'single parameter should not be modified' => [ - ' [ - ' [ - ' [ - ' [ - ' [ - '