Test Setup Failed
Pull Request — master (#3813)
by Evgeniy
05:19 queued 14s
created
src/Psalm/Internal/Analyzer/Statements/Expression/AssertionFinder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2107,7 +2107,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/CoalesceAnalyzer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Analyzer/Statements/Expression/BinaryOp/NonDivArithmeticOpAnalyzer.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -39,6 +39,10 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentAnalyzer.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,8 +47,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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(
Please login to merge, or discard this patch.
Analyzer/Statements/Expression/Call/Method/AtomicMethodCallAnalyzer.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Psalm/DocComment.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -178,7 +178,6 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Psalm/Internal/Analyzer/Statements/Block/TryAnalyzer.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -290,9 +290,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Psalm/Internal/Analyzer/CommentAnalyzer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -256,6 +256,7 @@  discard block
 block discarded – undo
256 256
     /**
257 257
      * @param  Aliases          $aliases
258 258
      * @param  array<string, TypeAlias> $type_aliases
259
+     * @param string|null $self_fqcln
259 260
      *
260 261
      * @throws DocblockParseException if there was a problem parsing the docblock
261 262
      *
@@ -361,7 +362,6 @@  discard block
 block discarded – undo
361 362
     }
362 363
 
363 364
     /**
364
-     * @param  int     $line_number
365 365
      *
366 366
      * @throws DocblockParseException if there was a problem parsing the docblock
367 367
      *
Please login to merge, or discard this patch.
Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -884,6 +884,7 @@  discard block
 block discarded – undo
884 884
 
885 885
     /**
886 886
      * @param non-empty-string $function_id
887
+     * @param \Psalm\Storage\FunctionStorage|null $function_storage
887 888
      */
888 889
     private static function getFunctionCallReturnType(
889 890
         StatementsAnalyzer $statements_analyzer,
@@ -1189,6 +1190,9 @@  discard block
 block discarded – undo
1189 1190
         return true;
1190 1191
     }
1191 1192
 
1193
+    /**
1194
+     * @param \Psalm\Storage\FunctionStorage|null $function_storage
1195
+     */
1192 1196
     private static function checkFunctionCallPurity(
1193 1197
         StatementsAnalyzer $statements_analyzer,
1194 1198
         \Psalm\Codebase $codebase,
Please login to merge, or discard this patch.