From 9d7f54c762b933293e44d6efa54f2e6b5a99e32b Mon Sep 17 00:00:00 2001 From: Patryk Date: Wed, 4 Jul 2018 17:28:10 +0200 Subject: [PATCH] Fix return type --- src/Entity/ShippingGateway.php | 4 ++-- src/Entity/ShippingGatewayInterface.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Entity/ShippingGateway.php b/src/Entity/ShippingGateway.php index b2815b2..bca4829 100644 --- a/src/Entity/ShippingGateway.php +++ b/src/Entity/ShippingGateway.php @@ -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]; } /** diff --git a/src/Entity/ShippingGatewayInterface.php b/src/Entity/ShippingGatewayInterface.php index cd54d10..81b6e67 100644 --- a/src/Entity/ShippingGatewayInterface.php +++ b/src/Entity/ShippingGatewayInterface.php @@ -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