Skip to content
Code-Schnipsel Gruppen Projekte
  1. Feb 25, 2025
    • Henning Leutz's avatar
      fix(phpstan): adjust method argument typings for better code readability · ac6dda13
      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
      ac6dda13
    • Henning Leutz's avatar
      fix(phpstan): allow null as parameter in various functions · 8490a644
      verfasst von Henning Leutz
      This commit does the following changes:
      
      1. Updated the PHPStan version from 1.11.8 to 1.12.13 in phars.xml
      2. In various classes, added the possibility to pass `null` as a parameter to a number of
      functions. Affected classes include but are not limited to: `ShippingInterface`, `Handler`,
      `Status`, `StatusUnknown`, and `ShippingEntry`.
      3. Updated return types in the `ShippingEntry` class to include `null` option.
      4. Simplified return types in various places from `datatype|datatype|null` to possibly nullable
      `datatype`.
      
      PHP9 + PHP8.4 null deprecated
      8490a644
  2. Nov 28, 2024
  3. Sep 09, 2024
  4. Aug 05, 2024
  5. Aug 01, 2024
  6. Jul 30, 2024
  7. Jul 22, 2024
  8. Jul 18, 2024
  9. Jun 20, 2024
  10. Jun 19, 2024
  11. Jun 14, 2024
  12. Mai 08, 2024
  13. Mai 07, 2024
  14. Mai 02, 2024
  15. Apr 30, 2024
  16. Apr 29, 2024
Lade