@@ -2107,7 +2107,7 @@ |
||
| 2107 | 2107 | } |
| 2108 | 2108 | |
| 2109 | 2109 | /** |
| 2110 | - * @param PhpParser\Node\Expr\FuncCall|PhpParser\Node\Expr\MethodCall|PhpParser\Node\Expr\StaticCall $expr |
|
| 2110 | + * @param PhpParser\Node\Expr\FuncCall $expr |
|
| 2111 | 2111 | * @param string|null $this_class_name |
| 2112 | 2112 | * @param FileSource $source |
| 2113 | 2113 | * @param bool $negate |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $if_clauses = array_values( |
| 60 | 60 | array_map( |
| 61 | 61 | /** |
| 62 | - * @return \Psalm\Internal\Clause |
|
| 62 | + * @return boolean |
|
| 63 | 63 | */ |
| 64 | 64 | function (\Psalm\Internal\Clause $c) use ($mixed_var_ids) { |
| 65 | 65 | $keys = array_keys($c->possibilities); |
@@ -39,6 +39,10 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | class NonDivArithmeticOpAnalyzer |
| 41 | 41 | { |
| 42 | + /** |
|
| 43 | + * @param StatementsSource|null $statements_source |
|
| 44 | + * @param Context $context |
|
| 45 | + */ |
|
| 42 | 46 | public static function analyze( |
| 43 | 47 | ?StatementsSource $statements_source, |
| 44 | 48 | \Psalm\Internal\Provider\NodeDataProvider $nodes, |
@@ -47,8 +47,9 @@ discard block |
||
| 47 | 47 | { |
| 48 | 48 | /** |
| 49 | 49 | * @param ?string $self_fq_class_name |
| 50 | - * @param ?string $static_fq_class_name |
|
| 50 | + * @param string|null $static_fq_class_name |
|
| 51 | 51 | * @param array<string, array<string, array{Type\Union, 1?:int}>> $class_generic_params |
| 52 | + * @param FunctionLikeParameter|null $function_param |
|
| 52 | 53 | * @return false|null |
| 53 | 54 | */ |
| 54 | 55 | public static function checkArgumentMatches( |
@@ -414,6 +415,7 @@ discard block |
||
| 414 | 415 | |
| 415 | 416 | /** |
| 416 | 417 | * @param Type\Atomic\ObjectLike|Type\Atomic\TArray|Type\Atomic\TList $unpacked_atomic_array |
| 418 | + * @param null|Type\Union $signature_param_type |
|
| 417 | 419 | * @return null|false |
| 418 | 420 | */ |
| 419 | 421 | public static function verifyType( |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * @param Codebase $codebase |
| 49 | 49 | * @param Context $context |
| 50 | 50 | * @param Type\Atomic\TNamedObject|Type\Atomic\TTemplateParam $static_type |
| 51 | - * @param ?string $lhs_var_id |
|
| 51 | + * @param string|null $lhs_var_id |
|
| 52 | 52 | */ |
| 53 | 53 | public static function analyze( |
| 54 | 54 | StatementsAnalyzer $statements_analyzer, |
@@ -831,6 +831,9 @@ discard block |
||
| 831 | 831 | ); |
| 832 | 832 | } |
| 833 | 833 | |
| 834 | + /** |
|
| 835 | + * @param Type\Union|null $all_intersection_return_type |
|
| 836 | + */ |
|
| 834 | 837 | private static function updateResultReturnType( |
| 835 | 838 | AtomicMethodCallAnalysisResult $result, |
| 836 | 839 | ?Type\Union $return_type_candidate, |
@@ -18,6 +18,7 @@ |
||
| 18 | 18 | * @param string|null $this_class_name |
| 19 | 19 | * @param FileSource|null $source |
| 20 | 20 | * @param int|null &$nesting |
| 21 | + * @param integer $nesting |
|
| 21 | 22 | * |
| 22 | 23 | * @return string|null |
| 23 | 24 | */ |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | class IncDecExpressionAnalyzer |
| 16 | 16 | { |
| 17 | 17 | /** |
| 18 | - * @param PostInc|PostDec|PreInc|PreDec $stmt |
|
| 18 | + * @param PhpParser\Node\Expr $stmt |
|
| 19 | 19 | */ |
| 20 | 20 | public static function analyze( |
| 21 | 21 | StatementsAnalyzer $statements_analyzer, |
@@ -99,6 +99,9 @@ |
||
| 99 | 99 | return true; |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | + /** |
|
| 103 | + * @param null|Context $global_context |
|
| 104 | + */ |
|
| 102 | 105 | private static function handleExpression( |
| 103 | 106 | StatementsAnalyzer $statements_analyzer, |
| 104 | 107 | PhpParser\Node\Expr $stmt, |
@@ -271,6 +271,7 @@ discard block |
||
| 271 | 271 | |
| 272 | 272 | /** |
| 273 | 273 | * @psalm-return false|null |
| 274 | + * @param null|Context $global_context |
|
| 274 | 275 | */ |
| 275 | 276 | private static function analyzeStatement( |
| 276 | 277 | StatementsAnalyzer $statements_analyzer, |
@@ -344,9 +345,9 @@ discard block |
||
| 344 | 345 | $suppressed = array_filter( |
| 345 | 346 | array_map( |
| 346 | 347 | /** |
| 347 | - * @param string $line |
|
| 348 | + * @param StatementsAnalyzer $line |
|
| 348 | 349 | * |
| 349 | - * @return string |
|
| 350 | + * @return false|null |
|
| 350 | 351 | */ |
| 351 | 352 | function ($line) { |
| 352 | 353 | return preg_split('/[\s]+/', $line)[0]; |