PHPStan level 9 #144
code-quality.yml
on: pull_request
code-quality
/
Lint GitHub Actions workflows
7s
code-quality
/
Lint PHP files
14s
code-quality
/
Lint Gherkin Feature files
14s
code-quality
/
Spell check
5s
code-quality
/
PHPCS
15s
code-quality
/
PHPStan
27s
Annotations
12 errors and 1 warning
|
code-quality / PHPCS
Process completed with exit code 1.
|
|
code-quality / PHPCS
Process completed with exit code 2.
|
|
code-quality / PHPStan:
src/Export_Command.php#L476
is_wp_error(string) will always evaluate to false.
|
|
code-quality / PHPStan:
src/Export_Command.php#L450
Method Export_Command::check_max_num_posts() is unused.
|
|
code-quality / PHPStan:
src/Export_Command.php#L424
is_wp_error(array) will always evaluate to false.
|
|
code-quality / PHPStan:
src/Export_Command.php#L423
Call to deprecated function get_users_of_blog():
3.1.0 Use get_users()
|
|
code-quality / PHPStan:
src/Export_Command.php#L307
Parameter #2 $timestamp of function date expects int|null, int|false given.
|
|
code-quality / PHPStan:
src/Export_Command.php#L288
Parameter #2 $timestamp of function date expects int|null, int|false given.
|
|
code-quality / PHPStan:
src/Export_Command.php#L237
Parameter #1 $callback of function call_user_func expects callable(): mixed, array{$this(Export_Command), non-falsy-string} given.
|
|
code-quality / PHPStan:
src/Export_Command.php#L199
Parameter #1 $args of function wp_export expects array{filters?: array, format?: class-string<WP_Export_WXR_Formatter>, writer?: class-string<WP_Export_Returner>, writer_args?: mixed}, array{filters: non-empty-array, writer: 'WP_Export_Split…', writer_args: array{max_file_size: mixed, destination_directory: mixed, filename_template: mixed, include_once: mixed}} given.
|
|
code-quality / PHPStan:
src/Export_Command.php#L191
Parameter #1 $args of function wp_export expects array{filters?: array, format?: class-string<WP_Export_WXR_Formatter>, writer?: class-string<WP_Export_Returner>, writer_args?: mixed}, array{filters: non-empty-array, writer: 'WP_Export_File…', writer_args: 'php://output'} given.
|
|
code-quality / PHPStan:
src/Export_Command.php#L184
Call to deprecated function WP_CLI\Utils\wp_clear_object_cache():
1.5.0
|
|
code-quality / PHPCS:
src/WP_Export_WXR_Formatter.php#L67
Detected heredoc without interpolation or expressions. Use nowdoc syntax instead
|