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) {
|
foreach ($fileNames as $file) {
|
||||||
$option = array_merge(
|
$content = Yaml::parse(file_get_contents((string) $file));
|
||||||
$option,
|
if ($content === null) {
|
||||||
Yaml::parse(file_get_contents((string) $file))
|
$content = [];
|
||||||
);
|
}
|
||||||
|
$option = array_merge($option, $content);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $option;
|
return $option;
|
||||||
|
|
Loading…
Reference in a new issue