Skip to content

Commit 6e147e0

Browse files
committed
Remove the $product->getName() call because it can cause an exception
1 parent ede58d8 commit 6e147e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EventSubscriber/UpdateProductSubscriber.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function dispatch(): void
9292
products: $this->products,
9393
triggeredBy: sprintf(
9494
'The update/creation of the following products: "%s"',
95-
implode('", "', array_map(static fn (ProductInterface $product): string => (string) ($product->getName() ?? $product->getCode()), $this->products)),
95+
implode('", "', array_map(static fn (ProductInterface $product): string => (string) $product->getCode(), $this->products)),
9696
),
9797
));
9898

0 commit comments

Comments
 (0)