redundant condition

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/43370/head
Maxence Lange 4 months ago
parent 2122a81419
commit 70a229da50

@ -844,10 +844,6 @@ class AppConfig implements IAppConfig {
$this->loadConfigAll();
$lazy = $this->isLazy($app, $key);
if (!$this->hasKey($app, $key, $lazy)) {
throw new AppConfigUnknownKeyException('Unknown config key');
}
// type can only be one type
if (!in_array($type, [self::VALUE_MIXED, self::VALUE_STRING, self::VALUE_INT, self::VALUE_FLOAT, self::VALUE_BOOL, self::VALUE_ARRAY])) {
throw new AppConfigIncorrectTypeException('Unknown value type');

Loading…
Cancel
Save