1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Fix build

This commit is contained in:
Matthew Brown 2019-06-01 17:10:53 -04:00
parent 62be1cc1b0
commit 08544b8af9
2 changed files with 3 additions and 4 deletions

View File

@ -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();
}

View File

@ -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' => []];
}