Skip to content
Code-Schnipsel Gruppen Projekte
  1. Feb 23, 2025
    • Henning Leutz's avatar
      fix(phpunit): improve method existence checks in product handling code · 088220b6
      verfasst von Henning Leutz
      Extended the method existence checks throughout src/QUI/ERP/Order/Basket/ files. Improved the
      robustness of the code by ensuring that methods such as 'getUuid', 'getProductSetParentUuid',
      'getQuantity', 'toArticle', and 'getAttributesForUniqueField' exist before calling them, thus
      preventing potential undefined method errors. Removed unnecessary comments used for type hinting in
      favor of functional checks.
      
      Related: #172
      088220b6
    • Henning Leutz's avatar
      fix(phpstan): better error handling and class usage · e8a56bf2
      verfasst von Henning Leutz
      This commit fixes several areas:
      
      1. It changes class type in BasketOrder from QUI\\Users\\User to QUI\\Interfaces\\Users\\User.
      
      2. It refactors Order to better handle if statements and moves verification of class existence up
      to the beginning. Fix involves assuming that function getInvoiceAddress and getDeliveryAddress
      always return a non-null value. It also updates on how we check class exists for Shipping data.
      
      3. In OrderInProcess, now we check if method 'toArticle' exists on the Product object before
      calling it and applies similar class checking like in Order for Shipping data.
      
      4. Corrects and standardizes the casing for exception catching in OrderProcess.
      
      In summary, these changes lead to a safer and cleaner code base by addressing potential Null
      Pointer Exceptions and ensuring the existence of classes before they are being called.
      
      Related: #172
      e8a56bf2
  2. Feb 06, 2025
    • Henning Leutz's avatar
      refactor: update union types with null · ca954d77
      verfasst von Henning Leutz
      Improve readability and interpretability of code by explicitly stating null in union types. This
      change has been applied across multiple files and functions.
      
      PHP8.4 compatibility
      ca954d77
  3. Apr 20, 2024
  4. Dez 18, 2023
  5. Aug 22, 2023
  6. Jun 24, 2022
  7. Jan 11, 2022
  8. Feb 15, 2021
  9. Feb 03, 2021
  10. Dez 23, 2020
  11. Aug 28, 2020
  12. Jun 16, 2020
  13. Jun 04, 2020
  14. Mai 22, 2020
  15. Mai 07, 2020
  16. Okt 23, 2019
  17. Sep 25, 2019
  18. Sep 20, 2019
  19. Sep 19, 2019
  20. Aug 22, 2019
  21. Aug 05, 2019
  22. Jul 26, 2019
  23. Mär 27, 2019
  24. Mär 26, 2019
  25. Nov 06, 2018
  26. Okt 31, 2018
  27. Okt 29, 2018
  28. Okt 01, 2018
  29. Sep 24, 2018
  30. Sep 21, 2018
  31. Sep 20, 2018
Lade