Skip to content

Update szepeviktor/phpstan-wordpress requirement from ^1.1 to ^2.0 #201

Update szepeviktor/phpstan-wordpress requirement from ^1.1 to ^2.0

Update szepeviktor/phpstan-wordpress requirement from ^1.1 to ^2.0 #201

Triggered via pull request December 2, 2024 10:18
Status Failure
Total duration 31s
Artifacts

coding-quality.yml

on: pull_request
code-quality  /  phpstan PHP 8.1
21s
code-quality / phpstan PHP 8.1
Fit to window
Zoom out
Zoom in

Annotations

8 errors
code-quality / phpstan PHP 8.1: wp-environment-switcher.php#L39
Function Alley\WP\WordPress_Environment_Switcher\get_environments() should return array<string, string> but returns array.
code-quality / phpstan PHP 8.1: wp-environment-switcher.php#L52
Cannot cast mixed to string.
code-quality / phpstan PHP 8.1: wp-environment-switcher.php#L53
Cannot cast mixed to string.
code-quality / phpstan PHP 8.1: wp-environment-switcher.php#L79
Parameter #1 $str of function sanitize_text_field expects string, mixed given.
code-quality / phpstan PHP 8.1: wp-environment-switcher.php#L125
Cannot call method add_menu() on mixed.
code-quality / phpstan PHP 8.1: wp-environment-switcher.php#L145
Call to function is_callable() with callable(): mixed will always evaluate to true.
code-quality / phpstan PHP 8.1: wp-environment-switcher.php#L157
Cannot call method add_menu() on mixed.
code-quality / phpstan PHP 8.1
Process completed with exit code 1.