chore: Added test to Previews and setup test workflow for plugins #72
code-quality.yml
on: pull_request
Check code quality
50s
Annotations
4 errors
|
Check code quality
Process completed with exit code 2.
|
|
PossiblyInvalidArgument:
src/Admin/Settings_Page.php#L126
src/Admin/Settings_Page.php:126:24: PossiblyInvalidArgument: Argument 1 of sanitize_key expects string, but possibly different type non-empty-array<int|non-empty-string, array<int|non-empty-string, mixed>|string>|string provided (see https://psalm.dev/092)
|
|
InvalidArgument:
src/Admin/Settings_Page.php#L64
src/Admin/Settings_Page.php:64:35: InvalidArgument: Argument 2 of do_action expects self, but HWP\Previews\Admin\Settings_Page provided (see https://psalm.dev/004)
|
|
ArgumentTypeCoercion:
src/Admin/Settings/Fields/Field/Abstract_Settings_Field.php#L110
src/Admin/Settings/Fields/Field/Abstract_Settings_Field.php:110:4: ArgumentTypeCoercion: Argument 6 of add_settings_field expects array{class?: string, label_for?: string}, but parent type array<string, mixed> provided (see https://psalm.dev/193)
|