From 0f2f131bec00e2f561959b76102925d2bc91ff8f Mon Sep 17 00:00:00 2001 From: kenjis Date: Tue, 4 Jul 2023 08:19:23 +0900 Subject: [PATCH] docs: add @phpstan-ignore-line The following error is false positive. See AutoRouterImprovedTest::testFindsControllerAndMethodAndParam(). ------ --------------------------------------------------------------- Line system/Router/AutoRouterImproved.php ------ --------------------------------------------------------------- 301 Strict comparison using !== between null and null will always evaluate to false. ------ --------------------------------------------------------------- --- system/Router/AutoRouterImproved.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Router/AutoRouterImproved.php b/system/Router/AutoRouterImproved.php index b8c1e9d35099..ca372f2006ea 100644 --- a/system/Router/AutoRouterImproved.php +++ b/system/Router/AutoRouterImproved.php @@ -298,7 +298,7 @@ public function getRoute(string $uri, string $httpVerb): array if ($params === []) { $this->paramPos = null; } - if ($this->paramPos !== null) { + if ($this->paramPos !== null) { // @phpstan-ignore-line $this->paramPos++; }