Update szepeviktor/phpstan-wordpress requirement from ^1.1 to ^2.0 #403
Annotations
10 errors
Run PHP Tests:
src/assets.php#L60
Function Alley\WP\Create_WordPress_Plugin\get_entry_asset_map() should return array{dependencies?: array<string>, version?: string} but returns mixed.
|
Run PHP Tests:
src/assets.php#L76
Function Alley\WP\Create_WordPress_Plugin\get_asset_dependency_array() should return array<int, string> but returns array<string>.
|
Run PHP Tests:
src/meta.php#L98
Parameter #3 $args of function register_meta expects array{object_subtype?: string, type?: string, label?: string, description?: string, single?: bool, default?: mixed, sanitize_callback?: callable(): mixed, auth_callback?: callable(): mixed, ...}, array given.
|
Run PHP Tests:
src/meta.php#L110
Parameter #3 $args of function register_post_meta expects array{object_subtype?: string, type?: string, label?: string, description?: string, single?: bool, default?: mixed, sanitize_callback?: callable(): mixed, auth_callback?: callable(): mixed, ...}, array given.
|
Run PHP Tests:
src/meta.php#L117
Parameter #3 $args of function register_term_meta expects array{object_subtype?: string, type?: string, label?: string, description?: string, single?: bool, default?: mixed, sanitize_callback?: callable(): mixed, auth_callback?: callable(): mixed, ...}, array given.
|
Run PHP Tests:
src/meta.php#L150
Cannot access offset 'post_types' on mixed.
|
Run PHP Tests:
src/meta.php#L152
Cannot access offset 'post_types' on mixed.
|
Run PHP Tests:
src/meta.php#L155
Cannot access offset 'schema' on mixed.
|
Run PHP Tests:
src/meta.php#L156
Cannot access offset 'schema' on mixed.
|
Run PHP Tests:
src/meta.php#L156
Cannot access offset 'show_in_rest' on mixed.
|
Loading