Skip to content

Commit ae921b0

Browse files
authored
Merge pull request #9446 from neznaika0/refactor/filters-parent-phpdoc
refactor: Add phpDoc for `Filters`
2 parents 57a8859 + 1dc2f7c commit ae921b0

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

system/Config/Filters.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ class Filters extends BaseConfig
113113
*
114114
* Example:
115115
* 'isLoggedIn' => ['before' => ['account/*', 'profiles/*']]
116+
*
117+
* @var array<string, array<string, list<string>>>
116118
*/
117119
public array $filters = [];
118120
}

utils/phpstan-baseline/missingType.iterableValue.neon

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 1672 errors
1+
# total 1671 errors
22

33
parameters:
44
ignoreErrors:
@@ -792,11 +792,6 @@ parameters:
792792
count: 1
793793
path: ../../system/Config/Factory.php
794794

795-
-
796-
message: '#^Property CodeIgniter\\Config\\Filters\:\:\$filters type has no value type specified in iterable type array\.$#'
797-
count: 1
798-
path: ../../system/Config/Filters.php
799-
800795
-
801796
message: '#^Method CodeIgniter\\Config\\Services\:\:curlrequest\(\) has parameter \$options with no value type specified in iterable type array\.$#'
802797
count: 1

utils/phpstan-baseline/property.phpDocType.neon

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
# total 47 errors
1+
# total 46 errors
22

33
parameters:
44
ignoreErrors:
5-
-
6-
message: '#^PHPDoc type array\<string, array\<string, list\<string\>\>\> of property Config\\Filters\:\:\$filters is not the same as PHPDoc type array of overridden property CodeIgniter\\Config\\Filters\:\:\$filters\.$#'
7-
count: 1
8-
path: ../../app/Config/Filters.php
9-
105
-
116
message: '#^PHPDoc type string of property CodeIgniter\\Database\\MySQLi\\Connection\:\:\$escapeChar is not the same as PHPDoc type array\|string of overridden property CodeIgniter\\Database\\BaseConnection\<mysqli,mysqli_result\>\:\:\$escapeChar\.$#'
127
count: 1

0 commit comments

Comments
 (0)