code: public function loadFile(string $filename): array
      {
          if (!is_readable($filename)) {
              throw new \RuntimeException('The file "' . $filename . '" is not readable.');
          }
  
          $content = file_get_contents($filename);
  
          return $this->loadString($content);
      }
docs: {@inheritdoc}