diff --git a/phpstan-baseline.php b/phpstan-baseline.php index 1959aea9685c..fc9b102f8b3f 100644 --- a/phpstan-baseline.php +++ b/phpstan-baseline.php @@ -1,11 +1,5 @@ '#^PHPDoc type array\\\\> of property Config\\\\Filters\\:\\:\\$methods is not the same as PHPDoc type array of overridden property CodeIgniter\\\\Config\\\\Filters\\:\\:\\$methods\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/app/Config/Filters.php', -]; $ignoreErrors[] = [ 'message' => '#^PHPDoc type array\\\\>\\> of property Config\\\\Filters\\:\\:\\$filters is not the same as PHPDoc type array of overridden property CodeIgniter\\\\Config\\\\Filters\\:\\:\\$filters\\.$#', 'count' => 1, @@ -1151,11 +1145,6 @@ 'count' => 1, 'path' => __DIR__ . '/system/Config/Filters.php', ]; -$ignoreErrors[] = [ - 'message' => '#^Property CodeIgniter\\\\Config\\\\Filters\\:\\:\\$methods type has no value type specified in iterable type array\\.$#', - 'count' => 1, - 'path' => __DIR__ . '/system/Config/Filters.php', -]; $ignoreErrors[] = [ 'message' => '#^Accessing offset \'SERVER_PROTOCOL\' directly on \\$_SERVER is discouraged\\.$#', 'count' => 1, diff --git a/system/Config/Filters.php b/system/Config/Filters.php index 9096dc7ba03f..562eae8a26ef 100644 --- a/system/Config/Filters.php +++ b/system/Config/Filters.php @@ -102,6 +102,8 @@ class Filters extends BaseConfig * If you use this, you should disable auto-routing because auto-routing * permits any HTTP method to access a controller. Accessing the controller * with a method you don't expect could bypass the filter. + * + * @var array> */ public array $methods = [];