refactor: Add phpDoc for Filters

This commit is contained in:
neznaika0 2025-02-09 23:06:54 +03:00
parent c430f34720
commit 1dc2f7c918
No known key found for this signature in database
GPG Key ID: 7B8BD4FF88B7C50C
3 changed files with 4 additions and 12 deletions

View File

@ -113,6 +113,8 @@ class Filters extends BaseConfig
* *
* Example: * Example:
* 'isLoggedIn' => ['before' => ['account/*', 'profiles/*']] * 'isLoggedIn' => ['before' => ['account/*', 'profiles/*']]
*
* @var array<string, array<string, list<string>>>
*/ */
public array $filters = []; public array $filters = [];
} }

View File

@ -1,4 +1,4 @@
# total 1672 errors # total 1671 errors
parameters: parameters:
ignoreErrors: ignoreErrors:
@ -792,11 +792,6 @@ parameters:
count: 1 count: 1
path: ../../system/Config/Factory.php 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\.$#' message: '#^Method CodeIgniter\\Config\\Services\:\:curlrequest\(\) has parameter \$options with no value type specified in iterable type array\.$#'
count: 1 count: 1

View File

@ -1,12 +1,7 @@
# total 47 errors # total 46 errors
parameters: parameters:
ignoreErrors: 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\.$#' 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 count: 1