diff -u b/core/lib/Drupal/Component/PhpStorage/FileStorage.php b/core/lib/Drupal/Component/PhpStorage/FileStorage.php --- b/core/lib/Drupal/Component/PhpStorage/FileStorage.php +++ b/core/lib/Drupal/Component/PhpStorage/FileStorage.php @@ -37,16 +37,16 @@ * Implements Drupal\Component\PhpStorage\PhpStorageInterface::exists(). */ public function exists($name) { - $path = $this->getFullPath($name); - return file_exists($path); + return file_exists($this->getFullPath($name)); } /** * Implements Drupal\Component\PhpStorage\PhpStorageInterface::load(). */ public function load($name) { - $path = $this->getFullPath($name); - @include_once($path); + // The FALSE returned on failure is enough for the caller to handle this, + // we do not want a warning too. + return @include_once($this->getFullPath($name)) !== FALSE; } /**