Summary:
Module ModuleManager 2.1.8 : corrections + compatible php 7.1.0 to 8.1.4
Detailed Description:
modules/ModuleManager/lib/class.modmgr_utils.php
L187 undefined $server_md5 in function get_module_xml
throw new
CmsInvalidDataException($mod->Lang('error_checksum',array($server_md5,$dl_md5)));
#--- correction
throw new CmsInvalidDataException($mod->Lang('error_checksum', array($md5sum,
$dl_md5)));
##########
#-- make compatibility PHP versions from php 7.1.0 to 8.x.x : prevent compatible
notice
--------------
modules/ModuleManager/lib/class.ModuleManagerModuleInfo.php
L77
public function OffsetGet($key)
#--- correction
#[\ReturnTypeWillChange]
public function OffsetGet($key)
L131
if( $key == 'deprecated' ) {
// test if this module is deprecated
if( in_array($this['name'],self::$_deprecated) ) return TRUE;
return FALSE;
}
}
#--- correction
if( $key == 'deprecated' ) {
// test if this module is deprecated
if( in_array($this['name'],self::$_deprecated) ) return TRUE;
return FALSE;
}
return null;
}
L138
public function OffsetSet($key,$value)
#--- correction
public function OffsetSet($key,$value):void
L145
public function OffsetExists($key)
#--- correction
public function OffsetExists($key):bool
L148
if( $key != 'e_status' && $key != 'deprecated' ) return; // dynamic
#--- correction
if( $key != 'e_status' && $key != 'deprecated' ) return false; // dynamic