Skip to content

Commit d2580a9

Browse files
committed
Fixed YamlService parse empty string bug
1 parent 29d0a51 commit d2580a9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Framework/Config/YamlService.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ class YamlService
1616
*/
1717
public static function parse($input)
1818
{
19+
if (empty($input)) {
20+
return null;
21+
}
22+
1923
if (extension_loaded("yaml")) {
2024
return \yaml_parse($input);
2125
}

0 commit comments

Comments
 (0)