Skip to content

Commit f48d29e

Browse files
committed
Edit trim function because PHP8.1 compatibility
1 parent 74f1671 commit f48d29e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Helper/Data.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,17 +368,17 @@ protected function getStoreConfig($path)
368368

369369
protected function getKey()
370370
{
371-
return trim($this->getStoreConfig('postcodenl_api/general/api_key'));
371+
return trim($this->getStoreConfig('postcodenl_api/general/api_key') ?? '');
372372
}
373373

374374
protected function getSecret()
375375
{
376-
return trim($this->getStoreConfig('postcodenl_api/general/api_secret'));
376+
return trim($this->getStoreConfig('postcodenl_api/general/api_secret') ?? '');
377377
}
378378

379379
protected function getServiceUrl()
380380
{
381-
$serviceUrl = trim($this->getStoreConfig('postcodenl_api/development_config/api_url'));
381+
$serviceUrl = trim($this->getStoreConfig('postcodenl_api/development_config/api_url') ?? '');
382382
if (empty($serviceUrl)) {
383383
$serviceUrl = self::API_URL;
384384
}

0 commit comments

Comments
 (0)