From 19baaf769d0282ab1f344f285690838fff0afeda Mon Sep 17 00:00:00 2001 From: Peter van der Wal Date: Fri, 28 Aug 2026 15:14:43 +0200 Subject: [PATCH 1/2] style: apply phpcs code styling fixes File .php-cs-fixer.php didn't follow phpcs code styling --- templates/files/pimcore/.php-cs-fixer.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/templates/files/pimcore/.php-cs-fixer.php b/templates/files/pimcore/.php-cs-fixer.php index 3f871b1..6cc0f5e 100644 --- a/templates/files/pimcore/.php-cs-fixer.php +++ b/templates/files/pimcore/.php-cs-fixer.php @@ -1,12 +1,13 @@ in(__DIR__) ->exclude([ ...require(__DIR__ . '/vendor/youwe/testing-suite/config/pimcore/php-cs-fixer/excludes.php'), @@ -18,14 +19,14 @@ // example: 'autogenerated_content', ]); -$config = new PhpCsFixer\Config(); // @phpstan-ignore class.notFound (class lives in phar file and can't be seen) -return $config // @phpstan-ignore class.notFound (class lives in phar file and can't be seen) +$config = new PhpCsFixer\Config(); // @phpstan-ignore class.notFound (class lives in phar file and can't be seen) +return $config // @phpstan-ignore class.notFound (class lives in phar file and can't be seen) ->setRules(array_merge_recursive( require(__DIR__ . '/vendor/youwe/testing-suite/config/pimcore/php-cs-fixer/rules.php'), [ /** * Add your application specific overrides here - * @see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/ruleSets/index.rst for available rule sets + * @see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/ruleSets/index.rst for available rules * @see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/rules/index.rst for individual rules */ From b34c7e1299655e0d43695fb7159126b0895e6624 Mon Sep 17 00:00:00 2001 From: Peter van der Wal Date: Fri, 28 Aug 2026 15:17:51 +0200 Subject: [PATCH 2/2] fix: correct default phpmd include path --- CHANGELOG.md | 4 ++++ templates/files/default/phpmd.xml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3bdf1f3..d5152a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.2.2] +### Fixed +- Default: Faulty `phpmd.xml` include path, referencing Pimcore ruleset instead of default. + ## [3.2.1] ### Fixed - Drupal: Faulty `phpmd.xml` include path. diff --git a/templates/files/default/phpmd.xml b/templates/files/default/phpmd.xml index 76a60f0..86982ef 100644 --- a/templates/files/default/phpmd.xml +++ b/templates/files/default/phpmd.xml @@ -5,5 +5,5 @@ xsi:schemaLocation="http://pmd.github.io/schema/ruleset/2.0.0 https://pmd.github.io/schema/ruleset_2_0_0.xsd"> PHPMD - + \ No newline at end of file