File tree Expand file tree Collapse file tree
src/CoreShop/Bundle/VariantBundle/EventListener Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments