Skip to content

Commit b52a3f4

Browse files
authoredSep 17, 2019
Update Foundation.php
1 parent 665decc commit b52a3f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/Foundation.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function setConfig(array $config)
102102

103103
public function getConfig($key = null)
104104
{
105-
return $key ? $this->config[$key] : $this->config;
105+
return $key ? ($this->config[$key] ?? null) : $this->config;
106106
}
107107

108108
/**
@@ -127,4 +127,4 @@ public function __set($id, $value)
127127
{
128128
$this->offsetSet($id, $value);
129129
}
130-
}
130+
}

0 commit comments

Comments
 (0)
Please sign in to comment.