mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
fix: add correct array signatures for Modules
This commit is contained in:
parent
94e13a4616
commit
ca13b97df7
@ -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',
|
||||
|
@ -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,
|
||||
|
@ -37,7 +37,7 @@ class Modules
|
||||
/**
|
||||
* Auto-Discover Rules Handler
|
||||
*
|
||||
* @var array
|
||||
* @var list<string>
|
||||
*/
|
||||
public $aliases = [];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user