From b421974ad3fbda6d089c1d523f9827c4784d6d30 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Fri, 27 Oct 2023 23:40:29 +0800 Subject: [PATCH] fix: add Closure signature for CodeIgniter::$controller --- phpstan-baseline.php | 5 ----- system/CodeIgniter.php | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/phpstan-baseline.php b/phpstan-baseline.php index 0d372afdb97c..c56d1becdfee 100644 --- a/phpstan-baseline.php +++ b/phpstan-baseline.php @@ -186,11 +186,6 @@ 'count' => 6, 'path' => __DIR__ . '/system/CodeIgniter.php', ]; -$ignoreErrors[] = [ - 'message' => '#^Property CodeIgniter\\\\CodeIgniter\\:\\:\\$controller type has no signature specified for Closure\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/CodeIgniter.php', -]; $ignoreErrors[] = [ 'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#', 'count' => 1, diff --git a/system/CodeIgniter.php b/system/CodeIgniter.php index 9f9f6e174ca7..8299bfafa992 100644 --- a/system/CodeIgniter.php +++ b/system/CodeIgniter.php @@ -108,7 +108,7 @@ class CodeIgniter /** * Controller to use. * - * @var Closure|string + * @var (Closure(mixed...): ResponseInterface|string)|string */ protected $controller;