code: public static function parseFile(string $file, array $data = []): array
      {
          $string = file_get_contents($file);
  
          return static::parse($string, $data);
      }
docs: Parse objects file into objects
  
  @param string $file
  @param array $data
  @return array