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

fix: update phpstan config and add condition to package setup in src/QUI/ERP/Coupons/Events.php

This commit includes a minor modification in the `phpstan.dist.neon` file where the `excludePaths`
value has been updated. Besides, a conditional check has been added in the `onPackageSetup`
function, under `Events.php` in the `src/QUI/ERP/Coupons` directory, to only proceed if the package
name is 'quiqqer/coupons'. This additional check generally improves the efficiency and correctness
of the package setup process.
Übergeordneter 7e2e2aea
No related branches found
No related tags found
2 Merge Requests!19Update 'next-3.x' with latest changes from 'main',!18fix(phpstan): code improvements and resolve warnings
Pipeline #15515 mit Warnungen bestanden mit Phase
in 2 Minuten und 14 Sekunden
......@@ -9,4 +9,4 @@ parameters:
bootstrapFiles:
- tests/phpstan-bootstrap.php
excludePaths:
- src/QUI/ERP/Coupons/Products/DigitalCouponProductType.php
- src/QUI/ERP/Coupons/Events.php
......@@ -44,6 +44,10 @@ class Events
*/
public static function onPackageSetup(QUI\Package\Package $Package): void
{
if ($Package->getName() !== 'quiqqer/coupons') {
return;
}
try {
self::createProductFields();
} 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