diff --git a/phpstan.dist.neon b/phpstan.dist.neon index cab6bd01100e1786dfb6aeb2d257359c5a088a76..39db11b35f59969aa3a622a714331a1dd334f1dc 100644 --- a/phpstan.dist.neon +++ b/phpstan.dist.neon @@ -9,4 +9,4 @@ parameters: bootstrapFiles: - tests/phpstan-bootstrap.php excludePaths: - - src/QUI/ERP/Coupons/Products/DigitalCouponProductType.php + - src/QUI/ERP/Coupons/Events.php diff --git a/src/QUI/ERP/Coupons/Events.php b/src/QUI/ERP/Coupons/Events.php index a14c40e2c3f9f4aae56a165f73e936ed18786a9c..954c35d405596dffbd78d7e5a9b0d2deb006f7cf 100644 --- a/src/QUI/ERP/Coupons/Events.php +++ b/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) {