protected static function classnamesToArray($props)
    {
        foreach ($props as $k => $v) {
            if (\strpos($k, 'attribs') === 0 && isset($v['class'])) {
                if (!\is_array($v['class'])) {
                    $props[$k]['class'] = \explode(' ', $v['class']);
                }
            }
        }
        return $props;
    }