in src/Apache/Ignite/Internal/Binary/BinaryType.php [114:129]
public function merge(BinaryType $binaryType, BinarySchema $binarySchema): void
{
foreach ($binaryType->getFields() as $field) {
$fieldId = $field->getId();
if ($this->hasField($fieldId)) {
if ($this->getField($fieldId)->getTypeCode() !== $field->getTypeCode()) {
BinaryUtils::serializationError(
true, sprintf('type conflict for field "%s" of complex object type "%s"',
$field->getName(), $this->name));
}
} else {
$this->setField($field);
}
}
$this->addSchema($binarySchema);
}