final protected function mergeMappings(array $mappingsA, array $mappingsB): array
    {
        foreach ($mappingsB as $key => $value) {
            if (isset($mappingsA[$key]) || \array_key_exists($key, $mappingsA)) {
                if (\is_int($key)) {
                    $mappingsA[] = $value;
                } elseif (\is_array($value) && \is_array($mappingsA[$key])) {
                    $mappingsA[$key] = $this->mergeMappings($mappingsA[$key], $value);
                } else {
                    $mappingsA[$key] = $value;
                }
            } else {
                $mappingsA[$key] = $value;
            }
        }

        return $mappingsA;
    }
final protected function mergeMappings(array $mappingsA, array $mappingsB): array
    {
        foreach ($mappingsB as $key => $value) {
            if (isset($mappingsA[$key]) || \array_key_exists($key, $mappingsA)) {
                if (\is_int($key)) {
                    $mappingsA[] = $value;
                } elseif (\is_array($value) && \is_array($mappingsA[$key])) {
                    $mappingsA[$key] = $this->mergeMappings($mappingsA[$key], $value);
                } else {
                    $mappingsA[$key] = $value;
                }
            } else {
                $mappingsA[$key] = $value;
            }
        }

        return $mappingsA;
    }
final protected function mergeMappings ( array $ mappingsA , array $ mappingsB ) : array { foreach ( $ mappingsB as $ key => $ value ) { if ( isset ( $ mappingsA [ $ key ] ) || \ array_key_exists ( $ key , $ mappingsA ) ) { if ( \ is_int ( $ key ) ) { $ mappingsA [ ] = $ value ; } elseif ( \ is_array ( $ value ) && \ is_array ( $ mappingsA [ $ key ] ) ) { $ mappingsA [ $ key ] = $ this -> mergeMappings ( $ mappingsA [ $ key ] , $ value ) ; } else { $ mappingsA [ $ key ] = $ value ; } } else { $ mappingsA [ $ key ] = $ value ; } } return $ mappingsA ; }
Merge mapping data.

@param array $mappingsA
@param array $mappingsB

@return array
Merge mapping data .