Problem/Motivation
The module uses EntityStorageInterface::loadRevision() which is deprecated in Drupal 10.1.0 and removed in Drupal 11.0.0.
Per https://www.drupal.org/node/2926958, code should use \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision() instead.
Steps to reproduce
Enable deprecation warnings in PHP or run static analysis (PHPStan/Psalm)
Observe deprecation notices for loadRevision() calls on EntityStorageInterface
Proposed resolution
Add @var \Drupal\Core\Entity\RevisionableStorageInterface type hints to the storage variables before calling loadRevision(). This explicitly indicates the storage implements RevisionableStorageInterface, which is the non-deprecated interface that provides the loadRevision() method.
The entity storages for nodes and media already implement RevisionableStorageInterface, so this is a documentation/type annotation change only.
Remaining tasks
Review and commit patch
User interface changes
None.
API changes
None.
Data model changes
None.
Issue fork moderated_content_bulk_publish-3574635
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 #4
joseph.olstadThere's no change with this logic, it's the same currently and BTW, I have been using Drupal 11.2.10 with this module with no issues.
Comment #5
joseph.olstadComment #7
joseph.olstadOk , should be harmless enough.
Comment #9
joseph.olstadOk, this is a no change change, whatever, if it makes your type hinting happy, ok.
Comment #11
joseph.olstadhttps://www.drupal.org/project/moderated_content_bulk_publish/releases/2...