@@ -61,7 +61,6 @@ |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | - * @param array<PhpParser\Node\Arg> $call_args |
|
65 | 64 | * |
66 | 65 | * @return ?bool |
67 | 66 | */ |
@@ -61,7 +61,6 @@ |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | - * @param array<PhpParser\Node\Arg> $call_args |
|
65 | 64 | * |
66 | 65 | * @return ?bool |
67 | 66 | */ |
@@ -61,7 +61,6 @@ |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | - * @param array<PhpParser\Node\Arg> $call_args |
|
65 | 64 | * |
66 | 65 | * @return ?bool |
67 | 66 | */ |
@@ -218,6 +218,8 @@ |
||
218 | 218 | /** |
219 | 219 | * @param PhpParser\Node\Expr $stmt |
220 | 220 | * @param string $file_name |
221 | + * @param \Psalm\Internal\Provider\NodeDataProvider|null $type_provider |
|
222 | + * @param StatementsAnalyzer|null $statements_analyzer |
|
221 | 223 | * |
222 | 224 | * @return string|null |
223 | 225 | * @psalm-suppress MixedAssignment |
@@ -49,6 +49,7 @@ |
||
49 | 49 | /** |
50 | 50 | * @param string $method_id |
51 | 51 | * @param array<int, PhpParser\Node\Arg> $args |
52 | + * @param \Psalm\Internal\Provider\NodeDataProvider|null $nodes |
|
52 | 53 | * |
53 | 54 | * @return TCallable |
54 | 55 | */ |
@@ -130,6 +130,9 @@ |
||
130 | 130 | return $this->value !== 'static'; |
131 | 131 | } |
132 | 132 | |
133 | + /** |
|
134 | + * @param Codebase $codebase |
|
135 | + */ |
|
133 | 136 | public function replaceTemplateTypesWithArgTypes( |
134 | 137 | TemplateResult $template_result, |
135 | 138 | ?Codebase $codebase |
@@ -48,6 +48,7 @@ discard block |
||
48 | 48 | /** |
49 | 49 | * @param string[] $suppressed_issues |
50 | 50 | * @param 0|1|2 $failed_reconciliation |
51 | + * @param CodeLocation $code_location |
|
51 | 52 | */ |
52 | 53 | public static function reconcile( |
53 | 54 | string $assertion, |
@@ -368,6 +369,7 @@ discard block |
||
368 | 369 | /** |
369 | 370 | * @param string[] $suppressed_issues |
370 | 371 | * @param 0|1|2 $failed_reconciliation |
372 | + * @param null|integer $min_count |
|
371 | 373 | */ |
372 | 374 | private static function reconcileNonEmptyCountable( |
373 | 375 | Union $existing_var_type, |
@@ -1227,8 +1229,6 @@ discard block |
||
1227 | 1229 | } |
1228 | 1230 | |
1229 | 1231 | /** |
1230 | - * @param string[] $suppressed_issues |
|
1231 | - * @param 0|1|2 $failed_reconciliation |
|
1232 | 1232 | */ |
1233 | 1233 | private static function reconcileInArray( |
1234 | 1234 | Codebase $codebase, |
@@ -1271,8 +1271,6 @@ discard block |
||
1271 | 1271 | } |
1272 | 1272 | |
1273 | 1273 | /** |
1274 | - * @param string[] $suppressed_issues |
|
1275 | - * @param 0|1|2 $failed_reconciliation |
|
1276 | 1274 | */ |
1277 | 1275 | private static function reconcileHasArrayKey( |
1278 | 1276 | Union $existing_var_type, |
@@ -178,7 +178,6 @@ |
||
178 | 178 | * Parse a docblock comment into its parts. |
179 | 179 | * |
180 | 180 | * @param \PhpParser\Comment\Doc $docblock |
181 | - * @param bool $preserve_format |
|
182 | 181 | */ |
183 | 182 | public static function parsePreservingLength(\PhpParser\Comment\Doc $docblock) : ParsedDocblock |
184 | 183 | { |
@@ -290,9 +290,9 @@ |
||
290 | 290 | $catch_context->vars_in_scope[$catch_var_id] = new Union( |
291 | 291 | array_map( |
292 | 292 | /** |
293 | - * @param string $fq_catch_class |
|
293 | + * @param StatementsAnalyzer $fq_catch_class |
|
294 | 294 | * |
295 | - * @return Type\Atomic |
|
295 | + * @return false|null |
|
296 | 296 | */ |
297 | 297 | function ($fq_catch_class) use ($codebase) { |
298 | 298 | $catch_class_type = new TNamedObject($fq_catch_class); |