Fix call to deprecated method loadRevision()

Created on 1 June 2024, 6 months ago
Updated 22 June 2024, 5 months ago

PHPStan is reporting:

src/SchedulerManager.php line 930
Call to deprecated method loadRevision() of interface Drupal\Core\Entity\EntityStorageInterface in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision instead.

This is not a new error, it was previously ignored temporarily. However the deprecation text has changed from 'of class' to 'of interface' so the current ignore is invalid.

It would be better to fix this now, instead of change the 'ignore' text to make the problem go away.

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom jonathan1055

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024