Skip to content

Commit 3331b89

Browse files
authored
Merge pull request #110 from aadmathijssen/fix/fix-type-error-when-obtaining-module-version
Fix type error in \Flekto\Postcode\Helper\StoreConfigHelper::getModuleVersion method
2 parents 2699504 + e9b5bf1 commit 3331b89

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Helper/ApiClientHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ private function _getDebugInfo(): array
505505
];
506506

507507
// Module version
508-
$debug['moduleVersion'] = $this->_storeConfigHelper->getValue('module_version');
508+
$debug['moduleVersion'] = $this->_storeConfigHelper->getModuleVersion();
509509

510510
// Magento version
511511
$version = $this->_productMetadata->getVersion();

Helper/StoreConfigHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public function getCredentials(): array
164164
*/
165165
public function getModuleVersion(): string
166166
{
167-
return $this->getValue('module_version');
167+
return $this->getValue('module_version') ?? 'UNKNOWN';
168168
}
169169

170170
/**

0 commit comments

Comments
 (0)