mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Add missing docblock params
This commit is contained in:
parent
a179eb89eb
commit
72071fb5ec
@ -276,6 +276,7 @@ class CommentChecker
|
||||
|
||||
/**
|
||||
* @param array{description:string,specials:array<string,array<string>>} $parsed_doc_comment
|
||||
* @param string $left_padding
|
||||
* @return array<int, string>
|
||||
*/
|
||||
public static function renderDocComment(array $parsed_doc_comment, $left_padding)
|
||||
|
@ -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 $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)
|
||||
|
@ -765,6 +765,7 @@ class StatementsChecker
|
||||
|
||||
/**
|
||||
* @param string $method_id
|
||||
* @param array $args
|
||||
* @param int $argument_offset
|
||||
* @return boolean
|
||||
*/
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user