chore: Fix PHP linting errors for previews plugin and setup automated code quality #7
code-quality.yml
on: pull_request
Check code quality
38s
Annotations
2 errors
|
InvalidArgument:
src/Hooks/Preview_Hooks.php#L96
src/Hooks/Preview_Hooks.php:96:40: InvalidArgument: Argument 2 of add_filter expects callable(WP_REST_Response, WP_Term):WP_REST_Response, but impure-callable(WP_REST_Response, WP_Post):WP_REST_Response provided (see https://psalm.dev/004)
|
|
Check code quality
Process completed with exit code 2.
|