Skip to content

Ignore ResultCacheMetaExtension deprecation in our own analysis - #1065

Merged
mglaman merged 2 commits into
mainfrom
ignore-result-cache-meta-deprecation
Nov 5, 2026
Merged

mglaman merged 2 commits into
mainfrom
ignore-result-cache-meta-deprecation

Conversation

@mglaman

@mglaman mglaman commented Nov 5, 2026

Copy link
Copy Markdown
Owner

PHPStan 2.3 deprecates ResultCacheMetaExtension. BootstrapResultCacheMetaExtension implements it, so phpstan analyze fails in our lint job. The scheduled run has been red since 2026-10-07, and every PR's lint job fails the same way.

Ignore the error for that one file. The replacement API ($scope->trackFileDependency() and friends) requires PHPStan 2.3 and we allow ^2.1, so migrating means raising the floor. #1061 tracks that decision. The deprecation doesn't reach users: it only reports on our own source.

Merge order

Lint stays red on this PR until #1064 lands, because that PR fixes the other error (foreach.valueOverwrite). Merge #1064 first, then re-run this PR's checks.

Testing

Run with PHPStan 2.3.5, strict-rules 2.1.1, and deprecation-rules 2.0.5, the versions CI installs:

Integration jobs depend on lint, so they haven't run since 2026-10-06. They'll run on PHPStan 2.3 for the first time once lint passes here.

🤖 Generated with Claude Code

PHPStan 2.3 deprecates the interface. Its replacement requires 2.3 and we
support ^2.1, so migrating is a separate decision tracked in #1061.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mglaman
mglaman merged commit c8809af into main Nov 5, 2026
19 of 20 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.

1 participant