fix(phpstan): update abstractorder and other files for consistent function behaviour
Updated AbstractOrder.php to return null instead of false in getShippingStatus() when the shipping status is not set. This makes the method's behaviour more consistent. Updated Search.php to add a condition check for class existence before retrieving shipping status. This ensures that the code will not fail if the class is not defined. Modified DataLayer.php to add a condition check for class existence before retrieving shipping. Added @phpstan-ignore-next-line in Utils.php to silence phpstan for the next line of code. Related: #172
Übergeordneter
b7d4519e
No related branches found
No related tags found
- src/QUI/ERP/Order/AbstractOrder.php 4 Ergänzungen, 4 Löschungensrc/QUI/ERP/Order/AbstractOrder.php
- src/QUI/ERP/Order/Search.php 8 Ergänzungen, 6 Löschungensrc/QUI/ERP/Order/Search.php
- src/QUI/ERP/Order/Utils/DataLayer.php 1 Ergänzung, 1 Löschungsrc/QUI/ERP/Order/Utils/DataLayer.php
- src/QUI/ERP/Order/Utils/Utils.php 1 Ergänzung, 0 Löschungensrc/QUI/ERP/Order/Utils/Utils.php
Bitte registrieren oder Anmelden zum Kommentieren