Skip to content

Breaking Change: Tracking dependencies on values - #810

Merged
staabm merged 4 commits into
mainfrom
trackval
Oct 14, 2026
Merged

staabm merged 4 commits into
mainfrom
trackval

Conversation

@staabm

@staabm staabm commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

use more fine grained result-cache invalidation, see https://phpstan.org/developing-extensions/result-cache-meta-extensions#tracking-dependencies-on-values

if someone created custom rules/extensions/collectors built on-top of phpstan-dba QueryReflection, this will be a BC break as they need to call DbSchemaResultCacheMetaExtension::trackSchemaDependency($scope); as of this PR.
Before this release the whole result-cache was invalidated on every database schema change.

@staabm staabm mentioned this pull request Oct 10, 2026
@staabm staabm changed the title Tracking dependencies on values Breaking Change: Tracking dependencies on values Oct 10, 2026
@staabm
staabm marked this pull request as ready for review October 14, 2026 07:25
@staabm
staabm merged commit a37ebdb into main Oct 14, 2026
30 checks passed
@staabm
staabm deleted the trackval branch October 14, 2026 07:27
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