mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Fix build
This commit is contained in:
parent
62be1cc1b0
commit
08544b8af9
@ -13,16 +13,15 @@ class DocComment
|
||||
* https://github.com/facebook/libphutil/blob/master/src/parser/docblock/PhutilDocblockParser.php
|
||||
*
|
||||
* @param string|\PhpParser\Comment\Doc $docblock
|
||||
* @param int $line_number
|
||||
* @param bool $preserve_format
|
||||
*
|
||||
* @return array Array of the main comment and specials
|
||||
* @psalm-return array{description:string, specials:array<string, array<int, string>>}
|
||||
* @psalm-suppress PossiblyUnusedParam
|
||||
*/
|
||||
public static function parse($docblock, ?int $line_number = null, bool $preserve_format = false)
|
||||
public static function parse($docblock, ?int $line_number = null)
|
||||
{
|
||||
if (!is_string($docblock)) {
|
||||
$line_number = $docblock->getLine();
|
||||
$docblock = $docblock->getText();
|
||||
}
|
||||
|
||||
|
@ -286,7 +286,7 @@ class FunctionDocblockManipulator
|
||||
$docblock = $this->stmt->getDocComment();
|
||||
|
||||
if ($docblock) {
|
||||
$parsed_docblock = DocComment::parse($docblock, null, true);
|
||||
$parsed_docblock = DocComment::parse($docblock);
|
||||
} else {
|
||||
$parsed_docblock = ['description' => '', 'specials' => []];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user