Skip to content

PHPStan level 9

PHPStan level 9 #249

Triggered via pull request May 20, 2025 09:58
Status Failure
Total duration 27s
Artifacts

code-quality.yml

on: pull_request
code-quality  /  Lint GitHub Actions workflows
9s
code-quality / Lint GitHub Actions workflows
code-quality  /  Lint PHP files
16s
code-quality / Lint PHP files
code-quality  /  Lint Gherkin Feature files
13s
code-quality / Lint Gherkin Feature files
code-quality  /  PHPCS
17s
code-quality / PHPCS
code-quality  /  PHPStan
22s
code-quality / PHPStan
Fit to window
Zoom out
Zoom in

Annotations

10 errors
code-quality / PHPStan
Process completed with exit code 1.
code-quality / PHPStan: src/WP_CLI/Core/CoreUpgrader.php#L166
Method WP_CLI\Core\CoreUpgrader::upgrade() should return WP_Error|false|null but returns string|WP_Error|false.
code-quality / PHPStan: src/WP_CLI/Core/CoreUpgrader.php#L102
Parameter #1 $from of function copy expects string, string|true given.
code-quality / PHPStan: src/WP_CLI/Core/CoreUpgrader.php#L70
Method WP_CLI\Core\CoreUpgrader::download_package() should return string|WP_Error but returns true.
code-quality / PHPStan: src/Core_Command.php#L1393
Cannot access property $updates on mixed.
code-quality / PHPStan: src/Core_Command.php#L1188
Call to an undefined method WP_Upgrader::upgrade().
code-quality / PHPStan: src/Core_Command.php#L1139
Cannot access property $updates on mixed.
code-quality / PHPStan: src/Core_Command.php#L1127
Cannot access property $updates on mixed.
code-quality / PHPStan: src/Core_Command.php#L859
Parameter #2 $string of function explode expects string, string|false given.
code-quality / PHPStan: src/Core_Command.php#L855
Parameter #1 $haystack of function strpos expects string, string|false given.