From 8771dda6cfec54b2815d492b1a0c55a6696c4c1a Mon Sep 17 00:00:00 2001 From: Nathaniel Hammond Date: Wed, 18 Dec 2024 10:59:11 +0000 Subject: [PATCH] phpstan ignores for v4 stuff --- src/Plugin.php | 1 + src/elements/Product.php | 1 + src/elements/conditions/products/ProductCondition.php | 1 + 3 files changed, 3 insertions(+) diff --git a/src/Plugin.php b/src/Plugin.php index 82904b1..4b0f96c 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -184,6 +184,7 @@ public function getStore(): Store */ private function _registerUtilityTypes(): void { + /** @phpstan-ignore-next-line */ $eventName = defined(Utilities::class . '::EVENT_REGISTER_UTILITIES') ? Utilities::EVENT_REGISTER_UTILITIES : Utilities::EVENT_REGISTER_UTILITY_TYPES; Event::on( diff --git a/src/elements/Product.php b/src/elements/Product.php index f49e927..8150148 100644 --- a/src/elements/Product.php +++ b/src/elements/Product.php @@ -694,6 +694,7 @@ protected function tableAttributeHtml(string $attribute): string 'tags', 'variants', ])) { + /** @phpstan-ignore-next-line */ return parent::tableAttributeHtml($attribute); } diff --git a/src/elements/conditions/products/ProductCondition.php b/src/elements/conditions/products/ProductCondition.php index 94a27ae..e89e723 100644 --- a/src/elements/conditions/products/ProductCondition.php +++ b/src/elements/conditions/products/ProductCondition.php @@ -18,6 +18,7 @@ class ProductCondition extends ElementCondition */ protected function conditionRuleTypes(): array { + /** @phpstan-ignore-next-line */ return array_merge(parent::conditionRuleTypes(), [ ProductTypeConditionRule::class, ShopifyStatusConditionRule::class,