Skip to content

Commit

Permalink
Fix failing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemix committed Jun 18, 2015
1 parent 6eda3d1 commit 8f9d3a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Annotation/InjectConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected function read(array $config, $configKey)
$keys = explode('.', $configKey);

foreach ($keys as $key) {
if (isset($config[$key])) {
if (isset($config[$key]) && is_array($config[$key])) {
array_shift($keys);
return $this->read($config[$key], implode('.', $keys));
}
Expand Down

0 comments on commit 8f9d3a5

Please sign in to comment.