diff --git a/phpstan-baseline.php b/phpstan-baseline.php index c32d18872464..cfde40738834 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;