Skip to content

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

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 #2

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

code-quality.yml

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

Annotations

2 errors
InvalidArgument: src/Hooks/Preview_Hooks.php#L95
src/Hooks/Preview_Hooks.php:95: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.