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');