Skip to content
Code-Schnipsel Gruppen Projekte

fix: update php version and optimize string operations

Zusammengeführt Henning Leutz schlägt vor, next-2.x in main zu mergen.
  1. Mär 22, 2025
    • Henning Leutz's avatar
      fix: improve error logging for product frontend view · b2d08aff
      verfasst von Henning Leutz
      This commit expands on the error handling mechanism in our product model to be more specific during
      logging. If a product is activated in the system but not found in the frontend (HTTP 404 response),
      an error message is now logged using a 'products_not_found' tag. This will make it easier to
      identify and address issues with deactivated products that should be active. This commonly occurs
      when an outdated link through a search engine directs a user to a non-existing product page.
      b2d08aff
    • Henning Leutz's avatar
      fix: update php version and optimize string operations · 2855c70c
      verfasst von Henning Leutz
      Updated the PHP version requirement from 8.0 to 8.1 in composer.json.
      Refactored the string operations functions in category.php and productList.php. Replaced the
      'strpos' function with 'str_contains' for better readability and performance. Also replaced the
      usage of 'strpos' to check for string start with 'str_starts_with' for better readability. Fixed
      some strings formatting.
      2855c70c