code: private static function parseParams($paramStr)
      {
          $params = self::splitParams($paramStr);
          foreach ($params as $i => $str) {
              \preg_match('/^(?:([^=]*?)\s)?([^\s=]+)(?:\s*=\s*(\S+))?$/', $str, $matches);
              $info = array(
                  'type' => $matches[1] ?: null,
                  'name' => $matches[2],
              );
              if (!empty($matches[3])) {
                  $info['defaultValue'] = $matches[3];
              }
              $params[$i] = $info;
          }
          return $params;
      }
docs: Parse @method parameters
  
  @param string $paramStr parameter string
  
  @return array