Skip to content

Remove RevisionableStorageInterfaceStubTest#942

Merged
mglaman merged 1 commit intomainfrom
fix/941-remove-revisionable-storage-interface-stub-test
Feb 25, 2026
Merged

Remove RevisionableStorageInterfaceStubTest#942
mglaman merged 1 commit intomainfrom
fix/941-remove-revisionable-storage-interface-stub-test

Conversation

@mglaman
Copy link
Owner

@mglaman mglaman commented Feb 25, 2026

Summary

  • Removes RevisionableStorageInterfaceStubTest and its data fixture bug-586.php
  • PHPStan 2.1.38+ reworked phpDoc inheritance (phpstan/phpstan-src#4829) to resolve through reflection instead of re-walking the hierarchy, causing @deprecated on EntityStorageInterface::loadRevision to propagate through the full class/interface hierarchy
  • The RevisionableStorageInterface stub no longer suppresses the false positive deprecation warnings it was designed to prevent, so the test no longer validates meaningful behavior

Fixes #941

Test plan

  • All existing tests pass (php vendor/bin/phpunit)
  • CI passes for all Drupal versions including ^10.4

🤖 Generated with Claude Code

PHPStan 2.1.38+ reworked phpDoc inheritance to resolve through
reflection instead of re-walking the hierarchy (phpstan/phpstan-src#4829).
This causes @deprecated annotations on EntityStorageInterface::loadRevision
to propagate through the full class/interface hierarchy, bypassing the
RevisionableStorageInterface stub that was supposed to suppress false
positives.

The test no longer validates the stub's intended behavior, so remove it
and the associated data fixture.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mglaman mglaman merged commit 58e75c4 into main Feb 25, 2026
6 of 15 checks passed
@mglaman mglaman deleted the fix/941-remove-revisionable-storage-interface-stub-test branch February 25, 2026 15:35
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.

RevisionableStorageInterfaceStubTest is failing due to changes in PHPStan

1 participant