From 0e1b57a1f780c0250e8121d342032f6d4f7a2ea9 Mon Sep 17 00:00:00 2001 From: Klaus Purer Date: Sun, 23 Mar 2025 13:15:49 +0100 Subject: [PATCH 1/2] fix(phpcs): Update to 3.12 to detect spaces after final and abstract keyword --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e4581f35..fbe3426c 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1 || ^1.0.0", "sirbrillig/phpcs-variable-analysis": "^2.11.7", "slevomat/coding-standard": "^8.11", - "squizlabs/php_codesniffer": "^3.11.3", + "squizlabs/php_codesniffer": "^3.12.0", "symfony/yaml": ">=3.4.0" }, "autoload": { From 12c98e345c16f81bef4abcc243831eceae871099 Mon Sep 17 00:00:00 2001 From: Klaus Purer Date: Sun, 23 Mar 2025 13:23:47 +0100 Subject: [PATCH 2/2] update test case --- tests/Drupal/bad/BadUnitTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Drupal/bad/BadUnitTest.php b/tests/Drupal/bad/BadUnitTest.php index e9a855ce..7db0f5cf 100644 --- a/tests/Drupal/bad/BadUnitTest.php +++ b/tests/Drupal/bad/BadUnitTest.php @@ -61,6 +61,7 @@ protected function getErrorList(string $testFile): array case 'bad.install': return [ 1 => 1, + 10 => 1, 13 => 1, 16 => 1, 51 => 1,