1, ]; } /** * Validate an individual configuration entry. * * @param string $key Key of the configuration entry to validate. * @param mixed $value Value of the configuration entry to validate. * @return mixed Validated value. */ protected function validate($key, $value) { switch ($key) { case self::VERSION: if (! is_int($value)) { throw InvalidConfigurationValue::forInvalidSubValueType( self::class, self::VERSION, 'integer', is_object($value) ? get_class($value) : gettype($value) ); } break; } return $value; } }