Unverified Commit f8f27526 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3239859 by alexpott, longwave:...

Issue #3239859 by alexpott, longwave: \Drupal\Core\Template\Loader\ThemeRegistryLoader::getCacheKey() causes deprecations on PHP 8.1
parent 324ddcdf
Loading
Loading
Loading
Loading
+9 −0
Changes for core/lib/Drupal/Core/Template/Loader/ThemeRegistryLoader.php: 9 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -69,4 +69,13 @@ protected function findTemplate($name, $throw = TRUE) {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function getCacheKey($name) {
    // The parent implementation does unnecessary work that triggers
    // deprecations in PHP 8.1.
    return $this->findTemplate($name) ?: '';
  }

}