Skip to content

PHPStan level 9

PHPStan level 9 #295

Triggered via pull request July 1, 2025 13:03
Status Failure
Total duration 1m 2s
Artifacts

code-quality.yml

on: pull_request
code-quality  /  Lint GitHub Actions workflows
11s
code-quality / Lint GitHub Actions workflows
code-quality  /  Lint PHP files
33s
code-quality / Lint PHP files
code-quality  /  Lint Gherkin Feature files
20s
code-quality / Lint Gherkin Feature files
code-quality  /  Spell check
7s
code-quality / Spell check
code-quality  /  PHPCS
23s
code-quality / PHPCS
code-quality  /  PHPStan
59s
code-quality / PHPStan
Fit to window
Zoom out
Zoom in

Annotations

20 errors
code-quality / PHPCS
Process completed with exit code 1.
code-quality / PHPCS: tests/phpstan/scan-files.php#L9
Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "DB_COLLATE".
code-quality / PHPCS: tests/phpstan/scan-files.php#L8
Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "DB_CHARSET".
code-quality / PHPCS: tests/phpstan/scan-files.php#L7
Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "DB_PASSWORD".
code-quality / PHPCS: tests/phpstan/scan-files.php#L6
Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "DB_USER".
code-quality / PHPCS: tests/phpstan/scan-files.php#L5
Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "DB_NAME".
code-quality / PHPCS: tests/phpstan/scan-files.php#L4
Global constants defined by a theme/plugin should start with the theme/plugin prefix. Found: "DB_HOST".
code-quality / PHPCS: tests/phpstan/scan-files.php#L3
Namespace declarations without a namespace name are not allowed.
code-quality / PHPCS: tests/phpstan/scan-files.php#L3
Namespace declarations using the curly brace syntax are not allowed.
code-quality / PHPCS
Process completed with exit code 1.
code-quality / PHPStan: src/DB_Command.php#L1570
Parameter #5 $encoding of function cli\safe_substr expects bool|string, string|false|null given.
code-quality / PHPStan: src/DB_Command.php#L1206
Parameter #2 $callback of function usort expects callable(array{Name: string, Size: string, Bytes: string}, array{Name: string, Size: string, Bytes: string}): int, Closure(mixed, mixed): (bool|int<-1, 1>) given.
code-quality / PHPStan: src/DB_Command.php#L1199
Variable $size_format_display might not be defined.
code-quality / PHPStan: src/DB_Command.php#L1087
Parameter #2 $assoc_args of function WP_CLI\Utils\wp_get_table_names expects array<string, string>, array<string, bool|string> given.
code-quality / PHPStan: src/DB_Command.php#L907
Parameter #2 $assoc_args of function WP_CLI\Utils\wp_get_table_names expects array<string, string>, array<string, bool|string> given.
code-quality / PHPStan: src/DB_Command.php#L712
Parameter #1 $cmd of function WP_CLI\Utils\esc_cmd expects array<string>, string given.
code-quality / PHPStan: src/DB_Command.php#L359
Parameter #1 $cmd of function WP_CLI\Utils\esc_cmd expects array<string>, string given.
code-quality / PHPStan: src/DB_Command.php#L311
Parameter #1 $cmd of function WP_CLI\Utils\esc_cmd expects array<string>, string given.
code-quality / PHPStan: src/DB_Command.php#L263
Parameter #1 $cmd of function WP_CLI\Utils\esc_cmd expects array<string>, string given.
code-quality / PHPStan: src/DB_Command.php#L202
Parameter #2 $assoc_args of function WP_CLI\Utils\wp_get_table_names expects array<string, string>, array<string, true> given.