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 2361b6c commit e91af57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Context/ShippingGatewayContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit e91af57

Please sign in to comment.