From 72071fb5ecd4292d764ad483d4ef5ef8b70ddf8a Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Mon, 21 Nov 2016 13:37:27 -0500 Subject: [PATCH] Add missing docblock params --- src/Psalm/Checker/CommentChecker.php | 1 + src/Psalm/Checker/FileChecker.php | 10 +++++++--- src/Psalm/Checker/StatementsChecker.php | 1 + src/Psalm/Checker/TraitChecker.php | 1 + 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/Psalm/Checker/CommentChecker.php b/src/Psalm/Checker/CommentChecker.php index f87b017a1..b07e16d50 100644 --- a/src/Psalm/Checker/CommentChecker.php +++ b/src/Psalm/Checker/CommentChecker.php @@ -276,6 +276,7 @@ class CommentChecker /** * @param array{description:string,specials:array>} $parsed_doc_comment + * @param string $left_padding * @return array */ public static function renderDocComment(array $parsed_doc_comment, $left_padding) diff --git a/src/Psalm/Checker/FileChecker.php b/src/Psalm/Checker/FileChecker.php index cb9564c0c..9719d84d5 100644 --- a/src/Psalm/Checker/FileChecker.php +++ b/src/Psalm/Checker/FileChecker.php @@ -800,9 +800,12 @@ class FileChecker extends SourceChecker implements StatementsSource /** * Adds a docblock to the given file - * @param string $file_name - * @param int $line_number - * @param string $new_type + * + * @param string $file_name + * @param int $line_number + * @param string $docblock + * @param string $new_type + * @param string $phpdoc_type * @return void */ public static function addDocblockReturnType($file_name, $line_number, $docblock, $new_type, $phpdoc_type) @@ -818,6 +821,7 @@ class FileChecker extends SourceChecker implements StatementsSource * @param int $line_upset * @param string $existing_docblock * @param string $type + * @param string $phpdoc_type * @return void */ public static function updateDocblock(array &$file_lines, $line_number, &$line_upset, $existing_docblock, $type, $phpdoc_type) diff --git a/src/Psalm/Checker/StatementsChecker.php b/src/Psalm/Checker/StatementsChecker.php index 0c9e2bed3..963965ebf 100644 --- a/src/Psalm/Checker/StatementsChecker.php +++ b/src/Psalm/Checker/StatementsChecker.php @@ -765,6 +765,7 @@ class StatementsChecker /** * @param string $method_id + * @param array $args * @param int $argument_offset * @return boolean */ diff --git a/src/Psalm/Checker/TraitChecker.php b/src/Psalm/Checker/TraitChecker.php index 9ddf03052..5128dbd07 100644 --- a/src/Psalm/Checker/TraitChecker.php +++ b/src/Psalm/Checker/TraitChecker.php @@ -39,6 +39,7 @@ class TraitChecker extends ClassLikeChecker /** * @param bool $check_methods * @param Context|null $class_context + * @param bool $update_docblocks * @return void */ public function check($check_methods = true, Context $class_context = null, $update_docblocks = false)