Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 222de74

Browse files
authored
Preventing PHPUnit failure when project.local.yml is empty. (#691)
1 parent 31df21c commit 222de74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/phpunit/src/BltProjectTestBase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __construct($name = NULL, array $data = [], $dataName = '') {
5454
throw new \Exception("Could not find project.yml!");
5555
}
5656
if (file_exists("{$this->projectDirectory}/blt/project.local.yml")) {
57-
$this->config = array_replace_recursive($this->config, Yaml::parse(file_get_contents("{$this->projectDirectory}/blt/project.local.yml")));
57+
$this->config = array_replace_recursive($this->config, (array) Yaml::parse(file_get_contents("{$this->projectDirectory}/blt/project.local.yml")));
5858
}
5959
}
6060

0 commit comments

Comments
 (0)