From 982aabed802056474e6ed82716099e7f3da739a3 Mon Sep 17 00:00:00 2001 From: Filip Ilic Date: Tue, 6 Oct 2026 20:54:17 +0200 Subject: [PATCH] Update PHPStan to 2.3 PHPStan 2.3 knows get_comments() with count => true returns an int, so the @phpstan-ignore-line on that comparison no longer suppresses anything and is reported as unmatched; removed. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Filip Ilic --- composer.lock | 24 +++++++++++++-------- inc/progress-planner/comment-moderation.php | 2 +- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/composer.lock b/composer.lock index 5055a39..a085197 100644 --- a/composer.lock +++ b/composer.lock @@ -2055,16 +2055,11 @@ }, { "name": "phpstan/phpstan", - "version": "2.1.23", - "source": { - "type": "git", - "url": "https://github.com/phpstan/phpstan.git", - "reference": "a34502adbbd5c2366b5a97679848a5ace4f6f2f5" - }, + "version": "2.3.0", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/a34502adbbd5c2366b5a97679848a5ace4f6f2f5", - "reference": "a34502adbbd5c2366b5a97679848a5ace4f6f2f5", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/b1f9890d9af53a25c58129e78f0aadd31f90d7f4", + "reference": "b1f9890d9af53a25c58129e78f0aadd31f90d7f4", "shasum": "" }, "require": { @@ -2087,6 +2082,17 @@ "license": [ "MIT" ], + "authors": [ + { + "name": "Ondřej Mirtes" + }, + { + "name": "Markus Staab" + }, + { + "name": "Vincent Langlet" + } + ], "description": "PHPStan - PHP Static Analysis Tool", "keywords": [ "dev", @@ -2109,7 +2115,7 @@ "type": "github" } ], - "time": "2025-09-10T11:42:22+00:00" + "time": "2026-10-06T06:15:36+00:00" }, { "name": "phpunit/php-code-coverage", diff --git a/inc/progress-planner/comment-moderation.php b/inc/progress-planner/comment-moderation.php index 7904c27..371cae9 100644 --- a/inc/progress-planner/comment-moderation.php +++ b/inc/progress-planner/comment-moderation.php @@ -90,7 +90,7 @@ public function should_add_task() { ] ); - return $comments > 0; // @phpstan-ignore-line + return $comments > 0; } /**