From 9e54f349fea49690e7daa75f507598b041845a2d Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Sat, 6 Sep 2025 13:19:49 +0200 Subject: [PATCH 1/2] More rules inspired by phpstan-src --- phpcs.xml | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/phpcs.xml b/phpcs.xml index 62a2e0c..fd25955 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -16,6 +16,7 @@ + @@ -51,6 +52,8 @@ + + @@ -67,6 +70,17 @@ + + + + + + + + + + + @@ -76,8 +90,12 @@ - - + + + + + + @@ -119,11 +137,7 @@ - - - - - + tests/*/data tests/*/data-attributes From 40541f6bcc86e5a0659c58ad3860c93509d7e71a Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Sat, 6 Sep 2025 13:30:55 +0200 Subject: [PATCH 2/2] Test phpstan-src --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 564b1d1..f817094 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,6 +30,7 @@ jobs: - "phpstan-deprecation-rules" - "phpstan-dibi" - "phpstan-strict-rules" + - "phpstan-src" steps: - name: "Checkout extension"