From eb9f696ce0d57f10385ec5875eda68959a3864ef Mon Sep 17 00:00:00 2001 From: Thomas Hauschild <7961978+Morgy93@users.noreply.github.com> Date: Fri, 10 Jul 2026 15:02:51 +0200 Subject: [PATCH 1/2] fix: update export-ignore rules in .gitattributes --- .gitattributes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitattributes b/.gitattributes index 0589acd0..ce6b1cdc 100644 --- a/.gitattributes +++ b/.gitattributes @@ -14,3 +14,8 @@ /.release-please-manifest.json export-ignore /skills-lock.json export-ignore /.trunkignore export-ignore +/tests/ export-ignore +/phpunit.xml.dist export-ignore +/infection.json5 export-ignore +/.gitignore export-ignore +/.gitattributes export-ignore From a225fffd39859445adb523c2a588a573da4b665a Mon Sep 17 00:00:00 2001 From: Thomas Hauschild <7961978+Morgy93@users.noreply.github.com> Date: Fri, 10 Jul 2026 15:30:45 +0200 Subject: [PATCH 2/2] fix: include phpstan.neon and tests in analysis --- .github/workflows/static-analysis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index e94d6a50..8b677672 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -81,9 +81,11 @@ jobs: composer update --with-dependencies bin/magento setup:upgrade - # phpstan.neon is export-ignored, so the copied path repository omits - # it; place it next to the analysed source for the phpstan job. + # phpstan.neon and tests/ are export-ignored, so the copied path + # repository omits them; place them next to the analysed source so the + # phpstan job can analyse both `src` and `tests` (per phpstan.neon). cp ../mageforge/phpstan.neon vendor/openforgeproject/mageforge/phpstan.neon + cp -r ../mageforge/tests vendor/openforgeproject/mageforge/tests - name: Pack Magento install run: |