Skip to content
Code-Schnipsel Gruppen Projekte
  • Henning Leutz's avatar
    refactor(phpstan): enhance type enforcement and error handling in shipping rules · c79bc5df
    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
    c79bc5df