Skip to content
Code-Schnipsel Gruppen Projekte
Commit de59db8d erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

Merge branch 'next-2.x' into 'main'

fix: update return type in product model methods

See merge request !109
Übergeordnete 2782a9cf b5baafda
Keine zugehörigen Branchen gefunden
Tags 2.5.0
2 Merge Requests!110Update 'next-3.x' with latest changes from 'main',!109fix: update return type in product model methods
Pipeline-Nr. 15767 mit Warnungen bestanden
......@@ -2119,10 +2119,10 @@ public function hasField(int $fieldId): bool
* Return the field value
*
* @param integer|string $fieldId - Field ID or FIELD constant name -> FIELD_PRICE, FIELD_PRODUCT_NO ...
* @return string|array|null
* @throws QUI\ERP\Products\Product\Exception
* @return int|float|string|array|null
* @throws Exception
*/
public function getFieldValue(int | string $fieldId): string | array | null
public function getFieldValue(int | string $fieldId): int | float | string | array | null
{
return $this->getField($fieldId)->getValue();
}
......@@ -2132,10 +2132,10 @@ public function getFieldValue(int | string $fieldId): string | array | null
*
* @param integer $fieldId
* @param Locale|null $Locale (optional)
* @return string|array|null
* @throws \QUI\ERP\Products\Product\Exception
* @return int|float|string|array|null
* @throws Exception
*/
public function getFieldValueByLocale(int $fieldId, ?QUI\Locale $Locale = null): string | array | null
public function getFieldValueByLocale(int $fieldId, ?QUI\Locale $Locale = null): int | float | string | array | null
{
return $this->getField($fieldId)->getValueByLocale($Locale);
}
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren