Minor fix for return type alignment

make sure string returned is set to string in config getter
This commit is contained in:
2023-01-06 10:36:24 +09:00
parent 3634c5bdfa
commit 6f5cd028b9
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<psalm <psalm
errorLevel="3" errorLevel="8"
resolveFromConfigFile="true" resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config" xmlns="https://getpsalm.org/schema/config"

View File

@@ -85,7 +85,7 @@ class Config implements ConfigInterface
case 'AWS_GIFT_CARD_PARTNER_ID': case 'AWS_GIFT_CARD_PARTNER_ID':
case 'AWS_GIFT_CARD_ENDPOINT': case 'AWS_GIFT_CARD_ENDPOINT':
case 'AWS_GIFT_CARD_CURRENCY': case 'AWS_GIFT_CARD_CURRENCY':
$return = $_ENV[$key] ?? ''; $return = (string)($_ENV[$key] ?? '');
break; break;
default: default:
break; break;