diff --git a/src/PHPEncoder.php b/src/PHPEncoder.php index 326088b..43c6630 100644 --- a/src/PHPEncoder.php +++ b/src/PHPEncoder.php @@ -108,12 +108,12 @@ public function setOption($option, $value) */ private function isValidOption($option) { - if (array_key_exists($option, $this->options)) { + if (\array_key_exists($option, $this->options)) { return true; } foreach ($this->encoders as $encoder) { - if (array_key_exists($option, $encoder->getDefaultOptions())) { + if (\array_key_exists($option, $encoder->getDefaultOptions())) { return true; } } @@ -150,7 +150,7 @@ public function getAllOptions(array $overrides = []) } foreach ($overrides as $name => $value) { - if (!array_key_exists($name, $options)) { + if (!\array_key_exists($name, $options)) { throw new InvalidOptionException(sprintf("Invalid encoder option '%s'", $name)); }