Skip to content

Commit

Permalink
Fix native function invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
francoispluchino committed Apr 10, 2019
1 parent ec03f55 commit b756042
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Config/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function getArray($key, array $default = array())
*/
public function get($key, $default = null)
{
if (array_key_exists($key, $this->cacheEnv)) {
if (\array_key_exists($key, $this->cacheEnv)) {
return $this->cacheEnv[$key];
} else {
$envKey = $this->convertEnvKey($key);
Expand All @@ -83,7 +83,7 @@ public function get($key, $default = null)
}
}

return array_key_exists($key, $this->config)
return \array_key_exists($key, $this->config)
? $this->getByManager($key, $this->config[$key], $default)
: $this->getDefaultValue($key, $default);
}
Expand Down Expand Up @@ -214,7 +214,7 @@ private function convertJson($value, $environmentVariable)
*/
private function getDefaultValue($key, $default = null)
{
return null === $default && array_key_exists($key, $this->defaults)
return null === $default && \array_key_exists($key, $this->defaults)
? $this->defaults[$key]
: $default;
}
Expand All @@ -233,7 +233,7 @@ private function getByManager($key, $value, $default = null)
if (0 === strpos($key, 'manager-') && \is_array($value)
&& (!isset($this->defaults[$key]) || !\is_array($this->defaults[$key]))) {
$manager = $manager = $this->get('manager', '');
$value = array_key_exists($manager, $value)
$value = \array_key_exists($manager, $value)
? $value[$manager]
: $this->getDefaultValue($key, $default);
}
Expand Down

0 comments on commit b756042

Please sign in to comment.