Skip to content

Commit

Permalink
OP-558 - update plugin to Sylius 2 - fix phpdocs and comparission
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusz-rup committed Jan 20, 2025
1 parent e5f953c commit 3f57934
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ public function validate(mixed $order, Constraint $constraint): void
{
Assert::isInstanceOf($order, OrderInterface::class);

/** @var CustomerInterface $customer */
/** @var CustomerInterface|null $customer */
$customer = $order->getCustomer();

if (null == $customer) {
if (null === $customer) {
return;
}

Expand Down

0 comments on commit 3f57934

Please sign in to comment.