diff --git a/core/lib/Drupal/Core/Config/FileStorage.php b/core/lib/Drupal/Core/Config/FileStorage.php index ed53f4b..2a6d448 100644 --- a/core/lib/Drupal/Core/Config/FileStorage.php +++ b/core/lib/Drupal/Core/Config/FileStorage.php @@ -105,14 +105,13 @@ class FileStorage { */ public function read() { if (!$this->exists()) { - // Use var_export to quote $this->name to separate from text. - throw new FileStorageReadException('Configuration file ' . var_export($this->name, TRUE) . ' does not exist.'); + throw new FileStorageReadException("Configuration file '$this->name' does not exist."); } $data = file_get_contents($this->getFilePath()); $data = $this->decode($data); if ($data === FALSE) { - throw new FileStorageReadException('Failed to decode configuration file ' . var_export($this->name, TRUE) . '.'); + throw new FileStorageReadException("Failed to decode configuration file '$this->name'."); } return $data; }