Problem/Motivation
Call to deprecated method loadRevision() of interface Drupal\Core\Entity\RevisionableStorageInterface:
in drupal:10.1.0 and is removed from drupal:11.0.0. Use
\Drupal\Core\Entity\RevisionableStorageInterface::loadRevision instead.
🪪 method.deprecated
\Drupal\Core\Entity\EntityStorageInterface::loadRevision is deprecated, and the recommended replacement for Drupal 11 is to use \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision. However, RevisionableStorageInterface extends EntityStorageInterface, so even when using the correct one, I still get the error from phpstan.
Steps to reproduce
https://phpstan.org/r/72537fef-72a6-4cf5-89ba-920c2eab75ff
Proposed resolution
The method \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision should be marked @not-deprecated as outlined in the docs: https://phpstan.org/writing-php-code/phpdocs-basics#deprecations
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3571148
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
solideogloria commentedComment #3
garvitasakhrani commentedI am working on it.
Comment #5
garvitasakhrani commentedI’ve updated RevisionableStorageInterface::loadRevision() to be explicitly marked as @not-deprecated.
Changes have been pushed to the issue fork branch 3571148-mark-revisionablestorageinterfaceloadrevision-as.
Kindly review. Thanks!
Comment #6
solideogloria commentedThanks. That fixes the phpstan error.
Comment #9
catchCommitted/pushed to main and 11.x, thanks!