From aea89adefbc00cf310ff62d2b36335a7c7752a05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Viguier?= Date: Mon, 31 Aug 2026 17:56:38 +0200 Subject: [PATCH 1/2] Block WP stubs to 6.9.4 --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 4de0ef7..15f1349 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,8 @@ "type": "library", "require": { "php": "^8.0", - "szepeviktor/phpstan-wordpress": "^2.0" + "szepeviktor/phpstan-wordpress": "^2.0", + "php-stubs/wordpress-stubs": "6.9.4" }, "require-dev": { "phpunit/phpunit": "^9", From 29bb7d90faf1526e41fb9d60f617df4ba3cd8700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Viguier?= Date: Mon, 31 Aug 2026 17:56:48 +0200 Subject: [PATCH 2/2] Update readme --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 102f6af..9fd4aba 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,9 @@ This package provides a [PHPStan](https://phpstan.org/) extension for [Polylang](https://wordpress.org/plugins/polylang/) and [Polylang Pro](https://polylang.pro). It should be used in combination with [Polylang Stubs](https://github.com/polylang/polylang-stubs/). +> [!WARNING] +> Currently blocked to WordPress Stubs 6.9.4 until we find a solution to the issues we get with 7.0+. + ## Requirements - PHP 8+