Skip to content

Commit

Permalink
Fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick477 committed Jul 4, 2018
1 parent 907d5bb commit 9d7f54c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Entity/ShippingGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ public function getConfig(): ?array
/**
* {@inheritdoc}
*/
public function getConfigValue(string $key): ?string
public function getConfigValue(string $key)
{
Assert::keyExists($this->config, $key, sprintf(
'Shipping gateway config named %s does not exist.',
$key
));

return (string) $this->config[$key];
return $this->config[$key];
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/ShippingGatewayInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function getConfig(): ?array;
*
* @return string|null
*/
public function getConfigValue(string $key): ?string;
public function getConfigValue(string $key);

/**
* @return Collection|null
Expand Down

0 comments on commit 9d7f54c

Please sign in to comment.