Skip to content

chore: Fix PHP linting errors for previews plugin and setup automated code quality #7

chore: Fix PHP linting errors for previews plugin and setup automated code quality

chore: Fix PHP linting errors for previews plugin and setup automated code quality #7

Triggered via pull request May 30, 2025 10:24
Status Failure
Total duration 46s
Artifacts

code-quality.yml

on: pull_request
Check code quality
38s
Check code quality
Fit to window
Zoom out
Zoom in

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.