From c79e44dae2351257ad998e8c8192323a00515d0e Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Fri, 5 Jun 2026 12:00:56 +0200 Subject: [PATCH 1/2] Configure `johnbillion/wp-compat` --- composer.json | 1 + phpstan.neon.dist | 2 ++ 2 files changed, 3 insertions(+) diff --git a/composer.json b/composer.json index c11e7771..7197d7f1 100644 --- a/composer.json +++ b/composer.json @@ -12,6 +12,7 @@ "php": ">=7.2.24", "behat/behat": "^v3.15.0", "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || ^0.5 || ^0.6.2 || ^0.7.1 || ^1.0.0", + "johnbillion/wp-compat": "^0.3.1 || ^1.5", "php-parallel-lint/php-console-highlighter": "^1.0", "php-parallel-lint/php-parallel-lint": "^1.3.1", "phpcompatibility/php-compatibility": "^10.0", diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 427c1a52..5e8b6ed2 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -20,3 +20,5 @@ parameters: - WP_DEBUG_DISPLAY strictRules: strictCalls: true + WPCompat: + requiresAtLeast: '4.9' \ No newline at end of file From 82bbf133276562ff1de51ead3a996dc27d3057d5 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Fri, 5 Jun 2026 12:03:54 +0200 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- phpstan.neon.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 5e8b6ed2..373d903e 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -21,4 +21,4 @@ parameters: strictRules: strictCalls: true WPCompat: - requiresAtLeast: '4.9' \ No newline at end of file + requiresAtLeast: '4.9' \ No newline at end of file