From c60ebabb49b90acf5166fd58e0e6b6ddb51539c5 Mon Sep 17 00:00:00 2001 From: Luke Rodgers Date: Thu, 9 Apr 2020 11:22:28 +0100 Subject: [PATCH] Fix code style violation ``` FILE: magento2-disable-stock-reservation/src/Plugin/SourceDeductionProcessor.php ------------------------------------------------------------------------------------------------------------------------------ FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------ 91 | WARNING | The use of function is_null() is discouraged; use strict comparison "=== null"() instead ------------------------------------------------------------------------------------------------------------------------------ ``` --- src/Plugin/SourceDeductionProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin/SourceDeductionProcessor.php b/src/Plugin/SourceDeductionProcessor.php index a5ecdcb..3644edd 100644 --- a/src/Plugin/SourceDeductionProcessor.php +++ b/src/Plugin/SourceDeductionProcessor.php @@ -88,7 +88,7 @@ public function afterPlace(OrderService $subject, OrderInterface $result) { /** @var Order $order */ $order = $result; - if (is_null($order->getId())) { + if ($order->getId() === null) { return; }