Skip to content

Conversation

@priethor
Copy link
Contributor

@priethor priethor commented Oct 20, 2025

What

Eliminate environment-specific PHPStan failures between local developmentand CI and improve static analysis configuration.

How

  • Configuring reportUnmatchedIgnoredErrors: false so that CI errors we are ignoring are not reported as errors when running locally.
  • Cleaning up outdated ignore rules and documentation issues, both in the baseline and in@phpstan-ignore-next-line comments, replacing all with a single ignore pattern.
  • Replacing DOING_AJAX constant with wp_doing_ajax() function call
  • Add WordPress stubs to PHPStan configuration for better type checking
  • Fix PHPDoc parameter formatting to meet coding standards

Testing Instructions

  1. Run composer test:phpstan to verify no PHPStan errors

@priethor priethor changed the title Remove PHPStan errors in trunk Simplify PHPStan settings to eliminate environment-specific errors Oct 20, 2025
@priethor priethor merged commit f0bb3ac into trunk Oct 20, 2025
5 checks passed
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.

2 participants