Skip to content
Code-Schnipsel Gruppen Projekte
  1. Feb 25, 2025
    • Henning Leutz's avatar
      chore(phpstan): update erroneous return type message in phpstan-baseline · ab8fc62b
      verfasst von Henning Leutz
      This commit changes the incorrect return type message found in the phpstan-baseline.neon file.
      Return type of method ShippingTimePeriod::getFrontendView() has been correctly aligned to match
      that of TimePeriod::getFrontendView(). This ensures clear and accurate type error messages that
      adhere to the standard format.
      ab8fc62b
    • Henning Leutz's avatar
      chore(phpstan): error message compatibility for getFrontendView method · b5ad037d
      verfasst von Henning Leutz
      Updated the error message in the phpstan-baseline to reflect the compatibility between the
      getFrontendView methods in ShippingTimePeriod and TimePeriod classes.
      b5ad037d
    • Henning Leutz's avatar
      fix: resolve erroneous types and classes in phpstan baseline · 7da729e9
      verfasst von Henning Leutz
      This commit resolves multiple issues identified by the phpstan static analysis tool. The erroneous
      types and classes in `AbstractShippingEntry.php`, `EventHandler.php`, `ShippingTimePeriod.php` have
      been refractored to match the correct class and method signatures. The erroneous sections have been
      updated with the appropriate classes and methods for QUI\\\\ERP\\\\Accounting\\\\Invoice,
      QUI\\\\ERP\\\\Accounting\\\\Offers, and QUI\\\\ERP\\\\SalesOrders.
      
      Related: #55
      7da729e9
    • Henning Leutz's avatar
      fix(phpstan): improve type handling and method returns · e5ed940a
      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
      e5ed940a
  2. Aug 01, 2024
  3. Apr 30, 2024
Lade