Skip to content
Code-Schnipsel Gruppen Projekte
Commit 704e4892 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix(phpstan): add checks for undefined constant in utils.php

A fix has been applied in the src/QUI/TemplateCologne/Utils.php file. A condition has been added to
check whether the PRODUCT_FIELD_SHIPPING_TIME constant is defined. If not, the function will return
false to prevent any potential errors.
Übergeordneter 8773c99f
No related branches found
No related tags found
2 Merge Requests!25Update 'next-3.x' with latest changes from 'main',!24fix: adjust paths to standard mail templates in quiqqer/core
Pipeline #14770 mit Warnungen bestanden mit Phase
in 2 Minuten und 20 Sekunden
......@@ -611,6 +611,10 @@ public static function getShippingTimeFrontendView(int $productId): bool | QUI\E
return false;
}
if (!defined('PRODUCT_FIELD_SHIPPING_TIME')) {
return false;
}
try {
$ShippingField = $Product->getField(Shipping::PRODUCT_FIELD_SHIPPING_TIME);
} catch (\Exception $Exception) {
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren