Skip to content

Commit e7f2d2b

Browse files
committed
added .yaml files support
1 parent adb7ff1 commit e7f2d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FileReader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function readFile(string $filename, bool $isArray = null): ?array
3434
} elseif ($type === 'array') {
3535
return $result;
3636
}
37-
} else if ($fileFormat === 'yaml' || $fileFormat === 'yml') {
37+
} elseif ($fileFormat === 'yaml' || $fileFormat === 'yml') {
3838
$handle = fopen($filename, "r");
3939
$result = Yaml::parse(fread($handle, self::MAX_FILE_SIZE), Yaml::PARSE_OBJECT_FOR_MAP);
4040
fclose($handle);

0 commit comments

Comments
 (0)