Skip to content

Commit

Permalink
Merge pull request #8107 from paulbalandan/phpstan-codeigniter-contro…
Browse files Browse the repository at this point in the history
…ller

docs: add Closure signature for CodeIgniter::$controller
  • Loading branch information
kenjis authored Oct 28, 2023
2 parents 61e112a + b421974 commit 244dad6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion system/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class CodeIgniter
/**
* Controller to use.
*
* @var Closure|string
* @var (Closure(mixed...): ResponseInterface|string)|string
*/
protected $controller;

Expand Down

0 comments on commit 244dad6

Please sign in to comment.