protected function processDocBlock($text, array $uses = []): array
    {
        $parser = new DocBlockParser($text);

        $rtn = [
            'params' => [],
            'return' => null,
            'inheritdoc' => false,
        ];

        if (isset($parser->tags['param'])) {
            $rtn = $this->processDocBlockParams($parser->tags['param'], $uses, $rtn);
        }

        if (isset($parser->tags['return'])) {
            $rtn['return'] = $this->getDocBlockReturnType($parser->tags['return'], $uses);
        }

        if (stripos($parser->comment, '@inheritdoc') !== false) {
            $rtn['inheritdoc'] = true;
        }

        return $rtn;
    }
protected function processDocBlock($text, array $uses = []): array
    {
        $parser = new DocBlockParser($text);

        $rtn = [
            'params' => [],
            'return' => null,
            'inheritdoc' => false,
        ];

        if (isset($parser->tags['param'])) {
            $rtn = $this->processDocBlockParams($parser->tags['param'], $uses, $rtn);
        }

        if (isset($parser->tags['return'])) {
            $rtn['return'] = $this->getDocBlockReturnType($parser->tags['return'], $uses);
        }

        if (stripos($parser->comment, '@inheritdoc') !== false) {
            $rtn['inheritdoc'] = true;
        }

        return $rtn;
    }
protected function processDocBlock ( $ text , array $ uses = [ ] ) : array { $ parser = new DocBlockParser ( $ text ) ; $ rtn = [ 'params' => [ ] , 'return' => null , 'inheritdoc' => false , ] ; if ( isset ( $ parser -> tags [ 'param' ] ) ) { $ rtn = $ this -> processDocBlockParams ( $ parser -> tags [ 'param' ] , $ uses , $ rtn ) ; } if ( isset ( $ parser -> tags [ 'return' ] ) ) { $ rtn [ 'return' ] = $ this -> getDocBlockReturnType ( $ parser -> tags [ 'return' ] , $ uses ) ; } if ( stripos ( $ parser -> comment , '@inheritdoc' ) !== false ) { $ rtn [ 'inheritdoc' ] = true ; } return $ rtn ; }
Use Paul Scott's docblock parser to parse a docblock, then return the relevant parts.

@param string $text
@param array $uses

@return array
Use Paul Scott s docblock parser to parse a docblock then return the relevant parts .