Skip to content

Commit

Permalink
Deprecation fixed for loadRevison on RevisionableStorageInterface (#712)
Browse files Browse the repository at this point in the history
Fixed with 10.2.0.
  • Loading branch information
mglaman authored Jan 10, 2024
1 parent 6e6f455 commit a5a001a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ jobs:
- php-version: "8.1"
drupal: "^10.0"
experimental: false
- php-version: "8.1"
drupal: "~10.1.0"
experimental: false
- php-version: "8.2"
drupal: "^10.0"
experimental: false
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Rules/RevisionableStorageInterfaceStubTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function testRule(): void
$drupalVersion = str_replace('-dev', '', \Drupal::VERSION);
if (version_compare($drupalVersion, '10.1', '>=')) {
// There's a quirk on 10.1.x+ which false reports this error but was fixed on 11.x.
if (version_compare($drupalVersion, '11.0', '<')) {
if (version_compare($drupalVersion, '10.2', '<')) {
$errors[] = [
'Call to deprecated method loadRevision() of class Drupal\Core\Entity\EntityStorageInterface:
in drupal:10.1.0 and is removed from drupal:11.0.0. Use
Expand Down

0 comments on commit a5a001a

Please sign in to comment.