protected function normalizeTypeAndLength($type)
    {
        if (empty($type)) {
            // @codeCoverageIgnoreStart
            return [null, null];
            // @codeCoverageIgnoreEnd
        }

        if (preg_match('#^(?<type>.*)\((?<length>\d+)\)$#', $type, $matches)) {
            return [ $this->normalizeType($matches['type']), (int) $matches['length'] ];
        }

        return [ $this->normalizeType($type), $this->getDefaultLengthForType($type) ];
    }