Skip to content

Commit

Permalink
Fix type hinting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbager committed Feb 6, 2018
1 parent e91af57 commit cdc9ba2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Context/ShippingGatewayContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cdc9ba2

Please sign in to comment.