fix(phpstan): improve type handling and method returns
This commit includes several changes to improve type handling and the returns of various methods. It includes changes in files related to Shipping rules and status, as well as tracking. Notable changes include: - Refactoring of method signatures and corresponding usages to use type hinting for better error handling. - Fixed return types in Factory.php to return more specific types (ShippingRule and ShippingEntry). - Adjusted the createShippingStatus method to convert `id` to string before passing it to setValue method in Config. - Fixed active carrier filtering in Tracking for boolean conversion. - Modified handling and events related to shipping in ShippingEntry.php and Factory.php. - Other minor cleanups and refactorings. Related: #55
Übergeordneter
ac6dda13
Branches next-3.x
No related tags found
- phpstan-baseline.neon 0 Ergänzungen, 261 Löschungenphpstan-baseline.neon
- src/QUI/ERP/Shipping/Rules/Factory.php 6 Ergänzungen, 6 Löschungensrc/QUI/ERP/Shipping/Rules/Factory.php
- src/QUI/ERP/Shipping/ShippingStatus/Factory.php 2 Ergänzungen, 2 Löschungensrc/QUI/ERP/Shipping/ShippingStatus/Factory.php
- src/QUI/ERP/Shipping/ShippingStatus/Handler.php 3 Ergänzungen, 3 Löschungensrc/QUI/ERP/Shipping/ShippingStatus/Handler.php
- src/QUI/ERP/Shipping/Tracking/Tracking.php 1 Ergänzung, 1 Löschungsrc/QUI/ERP/Shipping/Tracking/Tracking.php
- src/QUI/ERP/Shipping/Types/Factory.php 9 Ergänzungen, 7 Löschungensrc/QUI/ERP/Shipping/Types/Factory.php
- src/QUI/ERP/Shipping/Types/ShippingEntry.php 0 Ergänzungen, 1 Löschungsrc/QUI/ERP/Shipping/Types/ShippingEntry.php
Bitte registrieren oder Anmelden zum Kommentieren