- Feb 25, 2025
-
-
verfasst von Henning Leutz
This commit enhances the type enforcement in the Shipping module by explicitly checking for method existence before calls on variable types. In addition, it enforces argument type checks for several function and method declarations to avoid type-related errors. Moreover, the error handling in different functions has been improved by catching potential exceptions and logging them for debug purposes. The commit also optimizes a PHP sorting function by leveraging the spaceship operator instead of using conventional comparisons. Related: #55
-
verfasst von Henning Leutz
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
-
verfasst von Henning Leutz
Updated method argument typings from `Type $var = null` to `null | Type $var = null` across multiple files to improve readability and understanding of the code. This change aligns with modern coding standards and the principle of explicit over implicit. Affected files: - `AbstractShippingEntry.php` - `AbstractShippingType.php` - `ShippingInterface.php` - `ShippingTypeInterface.php` - `Factory.php` - `ShippingRule.php` - `Shipping.php` PHP9 + PHP8.3 null deprecated
-
- Apr 19, 2024
-
-
verfasst von Henning Leutz
-
- Mär 15, 2024
-
-
verfasst von Henning Leutz
-
- Sep 08, 2023
-
-
verfasst von Henning Leutz
-
- Aug 02, 2023
-
-
verfasst von Henning Leutz
-
- Aug 17, 2020
-
-
verfasst von Henning Leutz
-
- Feb 20, 2020
-
-
verfasst von Henning Leutz
-
- Aug 28, 2019
-
-
verfasst von Henning Leutz
-
- Aug 21, 2019
-
-
verfasst von Henning Leutz
-
verfasst von Henning Leutz
-
- Aug 05, 2019
-
-
verfasst von Henning Leutz
-
- Aug 02, 2019
-
-
verfasst von Henning Leutz
-
- Aug 01, 2019
-
-
verfasst von Henning Leutz
-
- Jul 30, 2019
-
-
verfasst von Henning Leutz
fix: list refresh at shipping rule creation; type from shipping rule is now correct; title and working title are considered at the creation process
-
- Jul 10, 2019
-
-
verfasst von Henning Leutz
-
- Jul 09, 2019
-
-
verfasst von Henning Leutz
-
- Jul 05, 2019
-
-
verfasst von Henning Leutz
-
verfasst von Henning Leutz
-
verfasst von Henning Leutz
-
- Jul 04, 2019
-
-
verfasst von Henning Leutz
-
verfasst von Henning Leutz
-
verfasst von Henning Leutz
-