src/Column/ColumnTypeRegistry.php
public function getType(string $name): ResolvedColumnTypeInterface
    {
        if (!isset($this->types[$name])) {
            $type = null;

            foreach ($this->extensions as $extension) {
                if ($extension->hasType($name)) {
                    $type = $extension->getType($name);

                    break;
                }
            }

            if (!$type) {
                // Support fully-qualified class names.
                if (!class_exists($name) || !in_array(ColumnTypeInterface::class, class_implements($name), true)) {
                    throw new InvalidArgumentException(sprintf('Could not load type "%s"', $name));
                }

                $type = new $name();
            }

            $this->types[$name] = $this->resolveType($type);
        }

        return $this->types[$name];
    }
public function getType(string $name): ResolvedColumnTypeInterface
    {
        if (!isset($this->types[$name])) {
            $type = null;

            foreach ($this->extensions as $extension) {
                if ($extension->hasType($name)) {
                    $type = $extension->getType($name);

                    break;
                }
            }

            if (!$type) {
                // Support fully-qualified class names.
                if (!class_exists($name) || !in_array(ColumnTypeInterface::class, class_implements($name), true)) {
                    throw new InvalidArgumentException(sprintf('Could not load type "%s"', $name));
                }

                $type = new $name();
            }

            $this->types[$name] = $this->resolveType($type);
        }

        return $this->types[$name];
    }
{@inheritdoc}