@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | } |
348 | 348 | |
349 | 349 | /** |
350 | - * @param callable-string $function_id |
|
350 | + * @param string $function_id |
|
351 | 351 | * |
352 | 352 | * @return false|null |
353 | 353 | */ |
@@ -452,8 +452,8 @@ discard block |
||
452 | 452 | } |
453 | 453 | |
454 | 454 | /** |
455 | - * @param lowercase-string $fq_class_name |
|
456 | - * @param lowercase-string $parent_class |
|
455 | + * @param string $fq_class_name |
|
456 | + * @param string $parent_class |
|
457 | 457 | * |
458 | 458 | * @return void |
459 | 459 | */ |
@@ -260,7 +260,6 @@ discard block |
||
260 | 260 | |
261 | 261 | /** |
262 | 262 | * @param string $fq_classlike_name |
263 | - * @param string|null $referencing_file_path |
|
264 | 263 | * @param bool $analyze_too |
265 | 264 | * @param bool $store_failure |
266 | 265 | * @param array<string, mixed> $phantom_classes |
@@ -360,7 +359,7 @@ discard block |
||
360 | 359 | * @param int $_ |
361 | 360 | * @param string $file_path |
362 | 361 | * |
363 | - * @return void |
|
362 | + * @return boolean |
|
364 | 363 | */ |
365 | 364 | function ($_, $file_path) use ($filetype_scanners, $files_to_deep_scan) { |
366 | 365 | $this->scanFile( |
@@ -409,7 +408,7 @@ discard block |
||
409 | 408 | }, |
410 | 409 | $scanner_worker, |
411 | 410 | /** |
412 | - * @return PoolData |
|
411 | + * @return boolean |
|
413 | 412 | */ |
414 | 413 | function () { |
415 | 414 | $this->progress->debug('Collecting data from forked scanner process' . PHP_EOL); |
@@ -38,7 +38,7 @@ |
||
38 | 38 | /** |
39 | 39 | * @param string $a_code |
40 | 40 | * @param string $b_code |
41 | - * @param bool $body_change |
|
41 | + * @param string $body_change |
|
42 | 42 | * |
43 | 43 | * @return bool |
44 | 44 | */ |
@@ -32,7 +32,7 @@ |
||
32 | 32 | { |
33 | 33 | list($trace, $x, $y, $bc) = self::calculateTrace( |
34 | 34 | /** |
35 | - * @param string $a_code |
|
35 | + * @param PhpParser\Node\Stmt[] $a_code |
|
36 | 36 | * @param string $b_code |
37 | 37 | * |
38 | 38 | * @return bool |
@@ -186,7 +186,6 @@ |
||
186 | 186 | } |
187 | 187 | |
188 | 188 | /** |
189 | - * @param string $file_path |
|
190 | 189 | * |
191 | 190 | * @return array<string, FileManipulation[]> |
192 | 191 | */ |
@@ -262,11 +262,11 @@ discard block |
||
262 | 262 | /** |
263 | 263 | * Sets the new return type |
264 | 264 | * |
265 | - * @param ?string $php_type |
|
265 | + * @param string|null $php_type |
|
266 | 266 | * @param string $new_type |
267 | 267 | * @param string $phpdoc_type |
268 | 268 | * @param bool $is_php_compatible |
269 | - * @param ?string $description |
|
269 | + * @param string|null $description |
|
270 | 270 | * |
271 | 271 | * @return void |
272 | 272 | */ |
@@ -285,10 +285,9 @@ discard block |
||
285 | 285 | * Sets a new param type |
286 | 286 | * |
287 | 287 | * @param string $param_name |
288 | - * @param ?string $php_type |
|
288 | + * @param string|null $php_type |
|
289 | 289 | * @param string $new_type |
290 | 290 | * @param string $phpdoc_type |
291 | - * @param bool $is_php_compatible |
|
292 | 291 | * |
293 | 292 | * @return void |
294 | 293 | */ |
@@ -88,8 +88,7 @@ |
||
88 | 88 | * This closure must return an array (to be gathered). |
89 | 89 | * @param \Closure():mixed $shutdown_closure |
90 | 90 | * A closure to execute upon shutting down a child |
91 | - * @param ?\Closure(mixed $data):void $task_done_closure |
|
92 | - * A closure to execute when a task is done |
|
91 | + * @param \Closure $task_done_closure |
|
93 | 92 | * |
94 | 93 | * @psalm-suppress MixedAssignment |
95 | 94 | */ |
@@ -62,7 +62,7 @@ |
||
62 | 62 | |
63 | 63 | $listener = |
64 | 64 | /** |
65 | - * @return void |
|
65 | + * @return Promise |
|
66 | 66 | */ |
67 | 67 | function (Message $msg) use ($id, $deferred, &$listener) { |
68 | 68 | error_log('request handler'); |
@@ -2853,6 +2853,7 @@ discard block |
||
2853 | 2853 | |
2854 | 2854 | /** |
2855 | 2855 | * @param PhpParser\Node\Param $param |
2856 | + * @param string|null $fq_classlike_name |
|
2856 | 2857 | * |
2857 | 2858 | * @return FunctionLikeParameter |
2858 | 2859 | */ |
@@ -2964,6 +2965,7 @@ discard block |
||
2964 | 2965 | * @param FunctionLikeStorage $storage |
2965 | 2966 | * @param array<int, array{type:string,name:string,line_number:int,start:int,end:int}> $docblock_params |
2966 | 2967 | * @param PhpParser\Node\FunctionLike $function |
2968 | + * @param string|null $fq_classlike_name |
|
2967 | 2969 | * |
2968 | 2970 | * @return void |
2969 | 2971 | */ |