Skip to content
Permalink
Browse files

Make config deprecation error message more helpful

  • Loading branch information...
ravage84 committed Jun 25, 2018
1 parent 6fbe2a0 commit 135d24a5b30dc96db41403f8ac947a8979053a20
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/Core/Configure/Engine/PhpConfig.php
@@ -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;
}

0 comments on commit 135d24a

Please sign in to comment.
You can’t perform that action at this time.