Trying to fix regression related to CRCd class id
Publish PHP Package / docker (push) Successful in 6s Details

This commit is contained in:
Pavel Shevaev 2025-05-20 14:49:33 +03:00
parent 3718958480
commit f7fed18f4c
1 changed files with 2 additions and 2 deletions

View File

@ -28,10 +28,10 @@ class mtgMetaStruct extends mtgUserType
if(is_null($this->crc_class_id))
{
if($this->scope != null)
if($this->scope != null && !($this->scope instanceof mtgMetaParsedModule))
$this->crc_class_id = crc32($this->getFullName());
else
//TODO: migrate to crc32 from crc28
//TODO: stop using crc28, use crc32
$this->crc_class_id = crc32($this->name) & 0xFFFFFFF;
}