Skip to content

Fix PHPStan error in Processor::filter_fatal_error() - #20

Merged
ajaydsouza merged 1 commit into
mainfrom
fix/phpstan-fatal-filter
Oct 21, 2026
Merged

ajaydsouza merged 1 commit into
mainfrom
fix/phpstan-fatal-filter

Conversation

@ajaydsouza

Copy link
Copy Markdown
Contributor

PHPStan 2.3.1 reports function.alreadyNarrowedType at includes/class-processor.php:373: the docblock typed $error as array<string, mixed>, so the is_array() guard looked redundant.

The value arrives through the wp_should_handle_php_error filter, so it is now typed mixed and the runtime guard stays. Docblock-only change; no behavior change.


Generated by Claude Code

@ajaydsouza
ajaydsouza merged commit b5d69f8 into main Oct 21, 2026
36 checks passed
@ajaydsouza ajaydsouza mentioned this pull request Oct 21, 2026
@ajaydsouza
ajaydsouza deleted the fix/phpstan-fatal-filter branch October 23, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant