refactor: update Console::run() to allow it be called in command() function
#13987
test-phpstan.yml
on: pull_request
PHP Static Analysis
1m 5s
Annotations
10 errors
|
PHP Static Analysis:
system/Cache/Handlers/PredisHandler.php#L68
Property Config\Cache::$redis (array<string, bool|int|string|null>) in isset() is not nullable.
|
|
PHP Static Analysis:
system/Cache/CacheFactory.php#L56
Property Config\Cache::$handler (string) in isset() is not nullable.
|
|
PHP Static Analysis:
system/Cache/CacheFactory.php#L56
Property Config\Cache::$backupHandler (string) in isset() is not nullable.
|
|
PHP Static Analysis:
system/Cache/CacheFactory.php#L52
Property Config\Cache::$validHandlers (array<string, class-string<CodeIgniter\Cache\CacheInterface>>) in isset() is not nullable.
|
|
PHP Static Analysis:
system/CLI/Console.php#L57
Cannot unset offset 'help' on list<string>.
|
|
PHP Static Analysis:
system/CLI/Console.php#L54
Cannot unset offset 'no-header' on list<string>.
|
|
PHP Static Analysis:
system/CLI/Console.php#L51
Property CodeIgniter\CLI\Console::$options (list<string>) does not accept array<string, string|null>.
|
|
PHP Static Analysis:
system/CLI/Console.php#L0
Ignored error pattern #^Method CodeIgniter\\CLI\\Console\:\:parseParamsForHelpOption\(\) return type has no value type specified in iterable type array\.$# in path /home/runner/work/CodeIgniter4/CodeIgniter4/system/CLI/Console.php was not matched in reported errors.
|
|
PHP Static Analysis:
system/Boot.php#L207
Property Config\Paths::$envDirectory (string) on left side of ?? is not nullable.
|
|
PHP Static Analysis:
system/BaseModel.php#L673
Property Config\Feature::$limitZeroAsAll (bool) on left side of ?? is not nullable.
|