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

refactor(phpstand): update coupon code and physical coupon product

This commit modifies the `src/QUI/ERP/Coupons/CouponCode.php` by removing an unexplained variable
annotation.
In `src/QUI/ERP/Coupons/Products/PhysicalCouponProductType.php`, it introduces an import statement
for `QUI\\Locale` and updated the `Locale` parameter type definition in `getTypeDescription`
function. This change improves code readability and consistency.
Übergeordneter 2833ed98
No related branches found
Tags 2.0.2
2 Merge Requests!19Update 'next-3.x' with latest changes from 'main',!18fix(phpstan): code improvements and resolve warnings
Pipeline #15513 mit Warnungen bestanden mit Phase
in 2 Minuten und 20 Sekunden
...@@ -727,7 +727,6 @@ public function addToOrder(QUI\ERP\Order\OrderInProcess $Order): void ...@@ -727,7 +727,6 @@ public function addToOrder(QUI\ERP\Order\OrderInProcess $Order): void
continue; continue;
} }
/* @var $Discount QUI\ERP\Discount\Discount */
$discounts = $Coupon->getDiscounts(); $discounts = $Coupon->getDiscounts();
foreach ($discounts as $Discount) { foreach ($discounts as $Discount) {
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
namespace QUI\ERP\Coupons\Products; namespace QUI\ERP\Coupons\Products;
use QUI; use QUI;
use QUI\Locale;
/** /**
* Class PhysicalCouponProductType * Class PhysicalCouponProductType
...@@ -61,7 +62,7 @@ public static function getTypeTitle(null | QUI\Locale $Locale = null): string ...@@ -61,7 +62,7 @@ public static function getTypeTitle(null | QUI\Locale $Locale = null): string
} }
/** /**
* @param QUI\Locale $Locale * @param Locale|null $Locale
* @return string * @return string
*/ */
public static function getTypeDescription(null | QUI\Locale $Locale = null): string public static function getTypeDescription(null | QUI\Locale $Locale = null): string
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren