Skip to content

Commit

Permalink
refactor: Add phpDoc for Filters
Browse files Browse the repository at this point in the history
  • Loading branch information
neznaika0 committed Feb 9, 2025
1 parent c430f34 commit 1dc2f7c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 2 additions & 0 deletions system/Config/Filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ class Filters extends BaseConfig
*
* Example:
* 'isLoggedIn' => ['before' => ['account/*', 'profiles/*']]
*
* @var array<string, array<string, list<string>>>
*/
public array $filters = [];
}
7 changes: 1 addition & 6 deletions utils/phpstan-baseline/missingType.iterableValue.neon
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# total 1672 errors
# total 1671 errors

parameters:
ignoreErrors:
Expand Down Expand Up @@ -792,11 +792,6 @@ parameters:
count: 1
path: ../../system/Config/Factory.php

-
message: '#^Property CodeIgniter\\Config\\Filters\:\:\$filters type has no value type specified in iterable type array\.$#'
count: 1
path: ../../system/Config/Filters.php

-
message: '#^Method CodeIgniter\\Config\\Services\:\:curlrequest\(\) has parameter \$options with no value type specified in iterable type array\.$#'
count: 1
Expand Down
7 changes: 1 addition & 6 deletions utils/phpstan-baseline/property.phpDocType.neon
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# total 47 errors
# total 46 errors

parameters:
ignoreErrors:
-
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\.$#'
count: 1
path: ../../app/Config/Filters.php

-
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\.$#'
count: 1
Expand Down

0 comments on commit 1dc2f7c

Please sign in to comment.