fix(phpstan): improved method validity checks and reduced error handling
Änderungen vergleichen
- Henning Leutz erstellt
Updated the 'canUsedInOrder' function in Discount.php to accept ERP Entity Interface arguments instead of Order Interfaces for better flexibility and compatibility. Added checks to ensure that the provided entity is an instance of the Order Interface, increasing robustness.
+ 10
− 2
@@ -437,15 +437,23 @@ public function canUsedWith(QUI\ERP\Products\Interfaces\ProductInterface $Produc