Skip to content
Permalink
Browse files

Fix up config() to accept any scalar value for getting as per setConf…

…ig().
  • Loading branch information...
dereuromark committed Feb 10, 2017
1 parent 6c0f373 commit 620120b8cf020f1ae6ec0a432bfad3fd74acfb47
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Core/StaticConfigTrait.php
@@ -163,7 +163,7 @@ public static function getConfig($key)
*/
public static function config($key, $config = null)
{
if ($config !== null || !is_string($key)) {
if ($config !== null || is_array($key)) {
static::setConfig($key, $config);
return null;

0 comments on commit 620120b

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