From cdc9ba2c25dde948ebc12984590ccbc770b2d979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Kr=C3=B3l?= Date: Tue, 6 Feb 2018 15:07:25 +0100 Subject: [PATCH] Fix type hinting issue --- src/Context/ShippingGatewayContext.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Context/ShippingGatewayContext.php b/src/Context/ShippingGatewayContext.php index b09db7c..1e7a0d7 100644 --- a/src/Context/ShippingGatewayContext.php +++ b/src/Context/ShippingGatewayContext.php @@ -108,13 +108,13 @@ public function getLabelByCode(?string $code): ?string } /** - * @param int|null $id + * @param int $id * - * @return ShippingGatewayInterface|null + * @return ShippingGatewayInterface * * @throws ShippingGatewayNotFoundException */ - private function getExistingShippingGateway(?int $id): ?ShippingGatewayInterface + private function getExistingShippingGateway(int $id): ShippingGatewayInterface { /** @var ShippingGatewayInterface|null $shippingGateway */ $shippingGateway = $this->shippingGatewayRepository->find($id);