Skip to content

Commit a5a001a

Browse files
authored
Deprecation fixed for loadRevison on RevisionableStorageInterface (#712)
Fixed with 10.2.0.
1 parent 6e6f455 commit a5a001a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/php.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ jobs:
5252
- php-version: "8.1"
5353
drupal: "^10.0"
5454
experimental: false
55+
- php-version: "8.1"
56+
drupal: "~10.1.0"
57+
experimental: false
5558
- php-version: "8.2"
5659
drupal: "^10.0"
5760
experimental: false

tests/src/Rules/RevisionableStorageInterfaceStubTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testRule(): void
2727
$drupalVersion = str_replace('-dev', '', \Drupal::VERSION);
2828
if (version_compare($drupalVersion, '10.1', '>=')) {
2929
// There's a quirk on 10.1.x+ which false reports this error but was fixed on 11.x.
30-
if (version_compare($drupalVersion, '11.0', '<')) {
30+
if (version_compare($drupalVersion, '10.2', '<')) {
3131
$errors[] = [
3232
'Call to deprecated method loadRevision() of class Drupal\Core\Entity\EntityStorageInterface:
3333
in drupal:10.1.0 and is removed from drupal:11.0.0. Use

0 commit comments

Comments
 (0)