/** * Check the version of the given property in the User-Agent. * * @inherit */ public function version($propertyName, $type = self::VERSION_TYPE_STRING) { $check = key(static::$additionalProperties); // Check if the additional properties have been added already if (!array_key_exists($check, parent::$properties)) { parent::$properties = array_merge(parent::$properties, static::$additionalProperties); } return parent::version($propertyName, $type); }
/** * Check the version of the given property in the User-Agent. * * @inherit */ public function version($propertyName, $type = self::VERSION_TYPE_STRING) { $check = key(static::$additionalProperties); // Check if the additional properties have been added already if (!array_key_exists($check, parent::$properties)) { // TODO: why is mergeRules not working here? parent::$properties = array_merge(parent::$properties, static::$additionalProperties, $this->getConfigRules(['properties'])); } return parent::version($propertyName, $type); }