protected function processMethodParams(array $method, string $file, string $name)
    {
        if (!empty($method['docblock']['inheritdoc'])) {
            return;
        }

        foreach ($method['params'] as $param => $type) {
            if (is_array($type)) {
                $type = implode('|', $type);
            }

            if (!isset($method['docblock']['params'][$param])) {
                $this->warnings[] = [
                    'type' => 'param-missing',
                    'file' => $file,
                    'class' => $name,
                    'method' => $name,
                    'line' => $method['line'],
                    'param' => $param,
                ];

                return;
            }

            if (empty($type)) {
                return;
            }

            $paramType = $method['docblock']['params'][$param];
            if ($paramType !== $type) {
                if (!($type == 'array' && substr($paramType, -2) == '[]')) {
                    $this->warnings[] = [
                        'type' => 'param-mismatch',
                        'file' => $file,
                        'class' => $name,
                        'method' => $name,
                        'line' => $method['line'],
                        'param' => $param,
                        'param-type' => $type,
                        'doc-type' => $method['docblock']['params'][$param],
                    ];
                }
            }
        }
    }
protected function processMethodParams(array $method, string $file, string $name)
    {
        if (!empty($method['docblock']['inheritdoc'])) {
            return;
        }

        foreach ($method['params'] as $param => $type) {
            if (is_array($type)) {
                $type = implode('|', $type);
            }

            if (!isset($method['docblock']['params'][$param])) {
                $this->warnings[] = [
                    'type' => 'param-missing',
                    'file' => $file,
                    'class' => $name,
                    'method' => $name,
                    'line' => $method['line'],
                    'param' => $param,
                ];

                return;
            }

            if (empty($type)) {
                return;
            }

            $paramType = $method['docblock']['params'][$param];
            if ($paramType !== $type) {
                if (!($type == 'array' && substr($paramType, -2) == '[]')) {
                    $this->warnings[] = [
                        'type' => 'param-mismatch',
                        'file' => $file,
                        'class' => $name,
                        'method' => $name,
                        'line' => $method['line'],
                        'param' => $param,
                        'param-type' => $type,
                        'doc-type' => $method['docblock']['params'][$param],
                    ];
                }
            }
        }
    }
protected function processMethodParams ( array $ method , string $ file , string $ name ) { if ( ! empty ( $ method [ 'docblock' ] [ 'inheritdoc' ] ) ) { return ; } foreach ( $ method [ 'params' ] as $ param => $ type ) { if ( is_array ( $ type ) ) { $ type = implode ( '|' , $ type ) ; } if ( ! isset ( $ method [ 'docblock' ] [ 'params' ] [ $ param ] ) ) { $ this -> warnings [ ] = [ 'type' => 'param-missing' , 'file' => $ file , 'class' => $ name , 'method' => $ name , 'line' => $ method [ 'line' ] , 'param' => $ param , ] ; return ; } if ( empty ( $ type ) ) { return ; } $ paramType = $ method [ 'docblock' ] [ 'params' ] [ $ param ] ; if ( $ paramType !== $ type ) { if ( ! ( $ type == 'array' && substr ( $ paramType , - 2 ) == '[]' ) ) { $ this -> warnings [ ] = [ 'type' => 'param-mismatch' , 'file' => $ file , 'class' => $ name , 'method' => $ name , 'line' => $ method [ 'line' ] , 'param' => $ param , 'param-type' => $ type , 'doc-type' => $ method [ 'docblock' ] [ 'params' ] [ $ param ] , ] ; } } } }
Process method params.

@param array $method method
@param string $file file
@param string $name name

@return void
Process method params .