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

Preventing PHPUnit failure when project.local.yml is empty. #691

Merged
merged 1 commit into from
Nov 18, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/phpunit/src/BltProjectTestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __construct($name = NULL, array $data = [], $dataName = '') {
throw new \Exception("Could not find project.yml!");
}
if (file_exists("{$this->projectDirectory}/blt/project.local.yml")) {
$this->config = array_replace_recursive($this->config, Yaml::parse(file_get_contents("{$this->projectDirectory}/blt/project.local.yml")));
$this->config = array_replace_recursive($this->config, (array) Yaml::parse(file_get_contents("{$this->projectDirectory}/blt/project.local.yml")));
}
}

Expand Down