diff --git a/Block/Adminhtml/System/Config/Composer/Version.php b/Block/Adminhtml/System/Config/Composer/Version.php index 04694e8..31de69f 100755 --- a/Block/Adminhtml/System/Config/Composer/Version.php +++ b/Block/Adminhtml/System/Config/Composer/Version.php @@ -50,7 +50,7 @@ public function render(AbstractElement $element) */ protected function _getElementHtml(AbstractElement $element) { - $isElementIdModuleName = (strpos($element->getOriginalData('id'), 'MagePal_') === 0); + $isElementIdModuleName = (strpos((string)$element->getOriginalData('id'), 'MagePal_') === 0); $moduleName = $isElementIdModuleName ? $element->getOriginalData('id') : $this->getModuleName(); return 'v' . $this->module->getInstalledVersion($moduleName); diff --git a/Model/Module.php b/Model/Module.php index 7db099f..d6bad27 100644 --- a/Model/Module.php +++ b/Model/Module.php @@ -315,7 +315,7 @@ public function getMyExtensionList() { if (empty($this->myExtensionList)) { foreach ($this->moduleList->getNames() as $name) { - if (strpos($name, $this->filterModule) !== false && !in_array($name, $this->ignoreList)) { + if (strpos((string) $name, $this->filterModule) !== false && !in_array($name, $this->ignoreList)) { $composerName = $this->getInstalledComposerName($name); if ($composerName) { $this->myExtensionList[$composerName] = [