code: private function normalizeType($type)
      {
          if ('[]' === substr($type, -2)) {
              return $this->normalize(substr($type, 0, -2)).'[]';
          }
  
          return $this->normalize($type);
      }
docs: Prepare the type and normalize it.
  
  @param string $type
  
  @return string