Skip to content

Commit fd9cb65

Browse files
authored
Merge pull request #8854 from sahilKhatik/develop
docs: Resolved phpstan error in Config/Filters.php
2 parents 759344e + acf3e6c commit fd9cb65

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

phpstan-baseline.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
<?php declare(strict_types = 1);
22

3-
$ignoreErrors = [];
4-
$ignoreErrors[] = [
5-
'message' => '#^PHPDoc type array\\<string, array\\<int, string\\>\\> of property Config\\\\Filters\\:\\:\\$methods is not the same as PHPDoc type array of overridden property CodeIgniter\\\\Config\\\\Filters\\:\\:\\$methods\\.$#',
6-
'count' => 1,
7-
'path' => __DIR__ . '/app/Config/Filters.php',
8-
];
93
$ignoreErrors[] = [
104
'message' => '#^PHPDoc type array\\<string, array\\<string, array\\<int, string\\>\\>\\> of property Config\\\\Filters\\:\\:\\$filters is not the same as PHPDoc type array of overridden property CodeIgniter\\\\Config\\\\Filters\\:\\:\\$filters\\.$#',
115
'count' => 1,
@@ -1151,11 +1145,6 @@
11511145
'count' => 1,
11521146
'path' => __DIR__ . '/system/Config/Filters.php',
11531147
];
1154-
$ignoreErrors[] = [
1155-
'message' => '#^Property CodeIgniter\\\\Config\\\\Filters\\:\\:\\$methods type has no value type specified in iterable type array\\.$#',
1156-
'count' => 1,
1157-
'path' => __DIR__ . '/system/Config/Filters.php',
1158-
];
11591148
$ignoreErrors[] = [
11601149
'message' => '#^Accessing offset \'SERVER_PROTOCOL\' directly on \\$_SERVER is discouraged\\.$#',
11611150
'count' => 1,

system/Config/Filters.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ class Filters extends BaseConfig
102102
* If you use this, you should disable auto-routing because auto-routing
103103
* permits any HTTP method to access a controller. Accessing the controller
104104
* with a method you don't expect could bypass the filter.
105+
*
106+
* @var array<string, list<string>>
105107
*/
106108
public array $methods = [];
107109

0 commit comments

Comments
 (0)