From 3f579341e6806dd5046590a733df08f1b46ee304 Mon Sep 17 00:00:00 2001 From: Dariusz Rup Date: Mon, 20 Jan 2025 09:28:16 +0100 Subject: [PATCH] OP-558 - update plugin to Sylius 2 - fix phpdocs and comparission --- .../Constraints/Checkout/CheckoutAddressTypeValidator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Validator/Constraints/Checkout/CheckoutAddressTypeValidator.php b/src/Validator/Constraints/Checkout/CheckoutAddressTypeValidator.php index c4ec074..5b56184 100644 --- a/src/Validator/Constraints/Checkout/CheckoutAddressTypeValidator.php +++ b/src/Validator/Constraints/Checkout/CheckoutAddressTypeValidator.php @@ -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; }