Skip to content

Commit

Permalink
Merge pull request #8106 from paulbalandan/phpstan-modules
Browse files Browse the repository at this point in the history
docs: add correct array signatures for Modules
  • Loading branch information
kenjis committed Oct 28, 2023
2 parents 4a0197e + ca13b97 commit 243a6be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/Config/Modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Modules extends BaseModules
* ],
* ]
*
* @var array
* @var array{only?: list<string>, exclude?: list<string>}
*/
public $composerPackages = [];

Expand All @@ -72,7 +72,7 @@ class Modules extends BaseModules
*
* If it is not listed, only the base application elements will be used.
*
* @var string[]
* @var list<string>
*/
public $aliases = [
'events',
Expand Down
5 changes: 0 additions & 5 deletions phpstan-baseline.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
<?php declare(strict_types = 1);

$ignoreErrors = [];
$ignoreErrors[] = [
'message' => '#^PHPDoc type array\\<string\\> of property Config\\\\Modules\\:\\:\\$aliases is not the same as PHPDoc type array of overridden property CodeIgniter\\\\Modules\\\\Modules\\:\\:\\$aliases\\.$#',
'count' => 1,
'path' => __DIR__ . '/app/Config/Modules.php',
];
$ignoreErrors[] = [
'message' => '#^PHPDoc type CodeIgniter\\\\HTTP\\\\CLIRequest\\|CodeIgniter\\\\HTTP\\\\IncomingRequest of property App\\\\Controllers\\\\BaseController\\:\\:\\$request is not the same as PHPDoc type CodeIgniter\\\\HTTP\\\\RequestInterface of overridden property CodeIgniter\\\\Controller\\:\\:\\$request\\.$#',
'count' => 1,
Expand Down
2 changes: 1 addition & 1 deletion system/Modules/Modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Modules
/**
* Auto-Discover Rules Handler
*
* @var array
* @var list<string>
*/
public $aliases = [];

Expand Down

0 comments on commit 243a6be

Please sign in to comment.