fix: add correct array signatures for Modules

This commit is contained in:
John Paul E. Balandan, CPA 2023-10-27 23:29:18 +08:00
parent 94e13a4616
commit ca13b97df7
No known key found for this signature in database
GPG Key ID: FB7B51499BC27610
3 changed files with 3 additions and 8 deletions

View File

@ -58,7 +58,7 @@ class Modules extends BaseModules
* ],
* ]
*
* @var array
* @var array{only?: list<string>, exclude?: list<string>}
*/
public $composerPackages = [];
@ -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',

View File

@ -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,

View File

@ -37,7 +37,7 @@ class Modules
/**
* Auto-Discover Rules Handler
*
* @var array
* @var list<string>
*/
public $aliases = [];