Skip to content
Code-Schnipsel Gruppen Projekte

fix(phpstan): code improvements and resolve warnings

Zusammengeführt Henning Leutz schlägt vor, next-2.x in main zu mergen.
2 Dateien
+ 2
2
Änderungen vergleichen
  • Nebeneinander
  • In der Reihe
Dateien
2
  • 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.
@@ -3,6 +3,7 @@
namespace QUI\ERP\Coupons\Products;
use QUI;
use QUI\Locale;
/**
* Class PhysicalCouponProductType
@@ -61,7 +62,7 @@ public static function getTypeTitle(null | QUI\Locale $Locale = null): string
}
/**
* @param QUI\Locale $Locale
* @param Locale|null $Locale
* @return string
*/
public static function getTypeDescription(null | QUI\Locale $Locale = null): string