redundant condition

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
Maxence Lange 2024-02-07 12:22:36 -01:00
parent 2122a81419
commit 70a229da50

View file

@ -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');