protected function mergeMeta(array $meta, array $sourceMeta): array
    {
        $properties = $meta['properties'] ?? [];
        $sourceProperties = $sourceMeta['properties'] ?? [];

        foreach ($sourceProperties as $name => $data) {
            $properties[$name] = array_merge($properties[$name] ?? [], $data);
        }

        $meta = array_merge($meta, $sourceMeta);
        $meta['properties'] = $properties;

        return $meta;
    }
protected function mergeMeta(array $meta, array $sourceMeta): array
    {
        $properties = $meta['properties'] ?? [];
        $sourceProperties = $sourceMeta['properties'] ?? [];

        foreach ($sourceProperties as $name => $data) {
            $properties[$name] = array_merge($properties[$name] ?? [], $data);
        }

        $meta = array_merge($meta, $sourceMeta);
        $meta['properties'] = $properties;

        return $meta;
    }
protected function mergeMeta ( array $ meta , array $ sourceMeta ) : array { $ properties = $ meta [ 'properties' ] ?? [ ] ; $ sourceProperties = $ sourceMeta [ 'properties' ] ?? [ ] ; foreach ( $ sourceProperties as $ name => $ data ) { $ properties [ $ name ] = array_merge ( $ properties [ $ name ] ?? [ ] , $ data ) ; } $ meta = array_merge ( $ meta , $ sourceMeta ) ; $ meta [ 'properties' ] = $ properties ; return $ meta ; }
Merge meta data

@param array $meta
@param array $sourceMeta
@return array
Merge meta data