@@ -343,8 +343,8 @@ discard block |
||
343 | 343 | |
344 | 344 | $analysis_worker = |
345 | 345 | /** |
346 | - * @param int $_ |
|
347 | - * @param string $file_path |
|
346 | + * @param ProjectAnalyzer $_ |
|
347 | + * @param integer $file_path |
|
348 | 348 | * |
349 | 349 | * @return array |
350 | 350 | */ |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | |
364 | 364 | $task_done_closure = |
365 | 365 | /** |
366 | - * @param array<IssueData> $issues |
|
366 | + * @param ProjectAnalyzer $issues |
|
367 | 367 | */ |
368 | 368 | function (array $issues): void { |
369 | 369 | $has_error = false; |
@@ -1399,6 +1399,7 @@ discard block |
||
1399 | 1399 | * @param string $file_path |
1400 | 1400 | * @param int $start |
1401 | 1401 | * @param int $end |
1402 | + * @param string $issue_type |
|
1402 | 1403 | * |
1403 | 1404 | * @return list<IssueData> |
1404 | 1405 | */ |
@@ -1425,6 +1426,7 @@ discard block |
||
1425 | 1426 | * @param string $file_path |
1426 | 1427 | * @param int $start |
1427 | 1428 | * @param int $end |
1429 | + * @param string $issue_type |
|
1428 | 1430 | * |
1429 | 1431 | * @return void |
1430 | 1432 | */ |
@@ -707,7 +707,7 @@ discard block |
||
707 | 707 | } |
708 | 708 | |
709 | 709 | /** |
710 | - * @param lowercase-string $fq_class_name |
|
710 | + * @param string $fq_class_name |
|
711 | 711 | * |
712 | 712 | * @return bool |
713 | 713 | */ |
@@ -780,6 +780,7 @@ discard block |
||
780 | 780 | } |
781 | 781 | |
782 | 782 | /** |
783 | + * @param Progress $progress |
|
783 | 784 | * @return void |
784 | 785 | */ |
785 | 786 | public function consolidateAnalyzedData(Methods $methods, ?Progress $progress, bool $find_unused_code) |
@@ -1083,7 +1084,7 @@ discard block |
||
1083 | 1084 | } |
1084 | 1085 | |
1085 | 1086 | /** |
1086 | - * @param lowercase-string|null $calling_method_id |
|
1087 | + * @param null|string $calling_method_id |
|
1087 | 1088 | */ |
1088 | 1089 | public function handleClassLikeReferenceInMigration( |
1089 | 1090 | \Psalm\Codebase $codebase, |
@@ -1266,7 +1267,7 @@ discard block |
||
1266 | 1267 | } |
1267 | 1268 | |
1268 | 1269 | /** |
1269 | - * @param lowercase-string|null $calling_method_id |
|
1270 | + * @param null|string $calling_method_id |
|
1270 | 1271 | */ |
1271 | 1272 | public function handleDocblockTypeInMigration( |
1272 | 1273 | \Psalm\Codebase $codebase, |
@@ -1501,6 +1502,9 @@ discard block |
||
1501 | 1502 | throw new \InvalidArgumentException('Must specify $visibility'); |
1502 | 1503 | } |
1503 | 1504 | |
1505 | + /** |
|
1506 | + * @param \Psalm\Internal\Analyzer\StatementsAnalyzer $statements_analyzer |
|
1507 | + */ |
|
1504 | 1508 | public function getConstantForClass( |
1505 | 1509 | string $class_name, |
1506 | 1510 | string $constant_name, |
@@ -2295,7 +2299,7 @@ discard block |
||
2295 | 2299 | } |
2296 | 2300 | |
2297 | 2301 | /** |
2298 | - * @param lowercase-string $fq_classlike_name_lc |
|
2302 | + * @param string $fq_classlike_name_lc |
|
2299 | 2303 | * |
2300 | 2304 | * @return void |
2301 | 2305 | */ |
@@ -2305,7 +2309,7 @@ discard block |
||
2305 | 2309 | } |
2306 | 2310 | |
2307 | 2311 | /** |
2308 | - * @param lowercase-string $fq_classlike_name_lc |
|
2312 | + * @param string $fq_classlike_name_lc |
|
2309 | 2313 | * |
2310 | 2314 | * @return bool |
2311 | 2315 | */ |
@@ -2316,7 +2320,7 @@ discard block |
||
2316 | 2320 | } |
2317 | 2321 | |
2318 | 2322 | /** |
2319 | - * @param lowercase-string $fq_classlike_name_lc |
|
2323 | + * @param string $fq_classlike_name_lc |
|
2320 | 2324 | * |
2321 | 2325 | * @return bool |
2322 | 2326 | */ |
@@ -855,9 +855,9 @@ discard block |
||
855 | 855 | |
856 | 856 | /** |
857 | 857 | * @param string $fq_class_name |
858 | - * @param lowercase-string $method_name_lc |
|
858 | + * @param string $method_name_lc |
|
859 | 859 | * @param string $declaring_fq_class_name |
860 | - * @param lowercase-string $declaring_method_name_lc |
|
860 | + * @param string $declaring_method_name_lc |
|
861 | 861 | * |
862 | 862 | * @return void |
863 | 863 | */ |
@@ -877,9 +877,9 @@ discard block |
||
877 | 877 | |
878 | 878 | /** |
879 | 879 | * @param string $fq_class_name |
880 | - * @param lowercase-string $method_name_lc |
|
880 | + * @param string $method_name_lc |
|
881 | 881 | * @param string $appearing_fq_class_name |
882 | - * @param lowercase-string $appearing_method_name_lc |
|
882 | + * @param string $appearing_method_name_lc |
|
883 | 883 | * |
884 | 884 | * @return void |
885 | 885 | */ |
@@ -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 | */ |