src/Viserio/Component/Exception/ErrorHandler.php
protected function transformArray(array $data): array
    {
        $array = [];

        foreach ($data as $key => $value) {
            if (\is_numeric($key)) {
                $key = \is_string($value) ? $value : \get_class($value);
            }

            $array[$key] = $value;
        }

        return $array;
    }
protected function transformArray(array $data): array
    {
        $array = [];

        foreach ($data as $key => $value) {
            if (\is_numeric($key)) {
                $key = \is_string($value) ? $value : \get_class($value);
            }

            $array[$key] = $value;
        }

        return $array;
    }
Transform's the given array to a key (class name) value (object/class name) array.

@param array $data

@return array