[], ]; } /** * 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. * @throws InvalidConfigurationValue If a provided configuration value was not valid. */ protected function validate( $key, $value ) { switch ( $key ) { case self::METADATA: if ( ! is_array( $value ) ) { throw InvalidConfigurationValue::forInvalidSubValueType( self::class, self::METADATA, 'array', gettype( $value ) ); } break; } return $value; } }