Skip to content

Commit 37af314

Browse files
committed
[Test] run tests with lowest requirements
1 parent 8f32ed2 commit 37af314

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/CoreShop/Bundle/VariantBundle/EventListener/AttributeListener.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@ public static function getSubscribedEvents(): array
4646

4747
public function preUpdate(DataObjectEvent $dataObjectEvent): void
4848
{
49+
/**
50+
* @var AttributeInterface&AbstractObject $object
51+
*/
4952
$object = $dataObjectEvent->getObject();
5053

5154
/**
52-
* @var AttributeInterface&AbstractObject $object
55+
* @psalm-suppress DocblockTypeContradiction
5356
*/
5457
if (!$object instanceof AttributeInterface) {
5558
return;

src/CoreShop/Bundle/VariantBundle/EventListener/ProductListener.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ public function preUpdate(DataObjectEvent $dataObjectEvent): void
5353
*/
5454
$object = $dataObjectEvent->getObject();
5555

56+
/**
57+
* @psalm-suppress DocblockTypeContradiction
58+
*/
5659
if (!$object instanceof ProductVariantAwareInterface) {
5760
return;
5861
}

0 commit comments

Comments
 (0)