Update PHPStan level to 9 (maybe) #3114
Annotations
10 errors and 1 warning
PHPStan:
includes/admin/load.php#L87
Cannot cast mixed to string.
|
PHPStan:
includes/admin/load.php#L251
Parameter #1 $str of function sanitize_text_field expects string, mixed given.
|
PHPStan:
includes/admin/plugins.php#L25
Function perflab_query_plugin_info() should return array{name: string, slug: string, short_description: string, requires: string|false, requires_php: string|false, requires_plugins: array<string>, download_link: string, version: string}|WP_Error but returns mixed.
|
PHPStan:
includes/admin/server-timing.php#L181
Parameter #2 $array of function implode expects array<string>, mixed given.
|
PHPStan:
includes/admin/server-timing.php#L181
Parameter #2 $pieces of function implode expects array, mixed given.
|
PHPStan:
includes/server-timing/defaults.php#L47
Cannot access property $queries on mixed.
|
PHPStan:
includes/server-timing/defaults.php#L55
Cannot access offset 1 on mixed.
|
PHPStan:
includes/server-timing/defaults.php#L197
Cannot access property $queries on mixed.
|
PHPStan:
includes/server-timing/defaults.php#L204
Cannot access offset 1 on mixed.
|
PHPStan:
includes/server-timing/defaults.php#L234
Argument of an invalid type mixed supplied for foreach, only iterables are supported.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading