From e91af57180fae6d6fb6a34e591a044e2710affb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Kr=C3=B3l?= Date: Tue, 6 Feb 2018 15:06:38 +0100 Subject: [PATCH] Fix type hinting issue --- src/Context/ShippingGatewayContext.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Context/ShippingGatewayContext.php b/src/Context/ShippingGatewayContext.php index 8ef7ada..b09db7c 100644 --- a/src/Context/ShippingGatewayContext.php +++ b/src/Context/ShippingGatewayContext.php @@ -75,10 +75,10 @@ public function getFormType(): ?string public function getCode(): ?string { $request = $this->requestStack->getCurrentRequest(); - $id = (int) $request->get('id'); + $id = $request->get('id'); if (null !== $id) { - return $this->getExistingShippingGateway($id)->getCode(); + return $this->getExistingShippingGateway((int) $id)->getCode(); } $code = $request->get('code');