FEATURE: Allow empty feature yaml files
* Handle empty yaml files for features in options class.
This commit is contained in:
parent
f972533e04
commit
fad2a4e498
1 changed files with 5 additions and 4 deletions
|
@ -140,10 +140,11 @@ class Options
|
|||
);
|
||||
|
||||
foreach ($fileNames as $file) {
|
||||
$option = array_merge(
|
||||
$option,
|
||||
Yaml::parse(file_get_contents((string) $file))
|
||||
);
|
||||
$content = Yaml::parse(file_get_contents((string) $file));
|
||||
if ($content === null) {
|
||||
$content = [];
|
||||
}
|
||||
$option = array_merge($option, $content);
|
||||
}
|
||||
|
||||
return $option;
|
||||
|
|
Loading…
Reference in a new issue