Skip to content

Commit ca13b97

Browse files
committed
fix: add correct array signatures for Modules
1 parent 94e13a4 commit ca13b97

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

app/Config/Modules.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Modules extends BaseModules
5858
* ],
5959
* ]
6060
*
61-
* @var array
61+
* @var array{only?: list<string>, exclude?: list<string>}
6262
*/
6363
public $composerPackages = [];
6464

@@ -72,7 +72,7 @@ class Modules extends BaseModules
7272
*
7373
* If it is not listed, only the base application elements will be used.
7474
*
75-
* @var string[]
75+
* @var list<string>
7676
*/
7777
public $aliases = [
7878
'events',

phpstan-baseline.php

-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
<?php declare(strict_types = 1);
22

33
$ignoreErrors = [];
4-
$ignoreErrors[] = [
5-
'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\\.$#',
6-
'count' => 1,
7-
'path' => __DIR__ . '/app/Config/Modules.php',
8-
];
94
$ignoreErrors[] = [
105
'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\\.$#',
116
'count' => 1,

system/Modules/Modules.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Modules
3737
/**
3838
* Auto-Discover Rules Handler
3939
*
40-
* @var array
40+
* @var list<string>
4141
*/
4242
public $aliases = [];
4343

0 commit comments

Comments
 (0)