Skip to content

Commit

Permalink
Make config deprecation error message more helpful
Browse files Browse the repository at this point in the history
  • Loading branch information
ravage84 committed Jun 25, 2018
1 parent 6fbe2a0 commit 135d24a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Core/Configure/Engine/PhpConfig.php
Expand Up @@ -93,7 +93,10 @@ public function read($key)
if (!isset($config)) {
throw new Exception(sprintf('Config file "%s" did not return an array', $key . '.php'));
}
deprecationWarning('PHP configuration files should not set `$config`. Instead return an array.');
deprecationWarning(sprintf(
'PHP configuration files like "%s" should not set `$config`. Instead return an array.',
$key . '.php'
));

return $config;
}
Expand Down

0 comments on commit 135d24a

Please sign in to comment.