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