Test Setup Failed
Pull Request — master (#3813)
by Evgeniy
05:19 queued 14s
created
src/Psalm/Internal/Analyzer/FunctionLikeAnalyzer.php 1 patch
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
         if ($storage instanceof MethodStorage) {
405 405
             $non_null_param_types = array_filter(
406 406
                 $storage->params,
407
-                /** @return bool */
407
+                /** @return null|false */
408 408
                 function (FunctionLikeParameter $p) {
409 409
                     return $p->type !== null && $p->has_docblock_type;
410 410
                 }
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
         } else {
413 413
             $non_null_param_types = array_filter(
414 414
                 $storage->params,
415
-                /** @return bool */
415
+                /** @return null|false */
416 416
                 function (FunctionLikeParameter $p) {
417 417
                     return $p->type !== null;
418 418
                 }
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
         ) {
426 426
             $types_without_docblocks = array_filter(
427 427
                 $storage->params,
428
-                /** @return bool */
428
+                /** @return null|false */
429 429
                 function (FunctionLikeParameter $p) {
430 430
                     return !$p->type || !$p->has_docblock_type;
431 431
                 }
@@ -839,6 +839,9 @@  discard block
 block discarded – undo
839 839
         return null;
840 840
     }
841 841
 
842
+    /**
843
+     * @param \Psalm\Storage\ClassLikeStorage|null $class_storage
844
+     */
842 845
     private function checkParamReferences(
843 846
         StatementsAnalyzer $statements_analyzer,
844 847
         FunctionLikeStorage $storage,
@@ -962,6 +965,7 @@  discard block
 block discarded – undo
962 965
     /**
963 966
      * @param array<int, \Psalm\Storage\FunctionLikeParameter> $params
964 967
      * @param array<int, Type\Union> $implemented_docblock_param_types
968
+     * @param string|null $cased_method_id
965 969
      */
966 970
     private function processParams(
967 971
         StatementsAnalyzer $statements_analyzer,
@@ -1471,7 +1475,6 @@  discard block
 block discarded – undo
1471 1475
     /**
1472 1476
      * Adds return types for the given function
1473 1477
      *
1474
-     * @param   string  $return_type
1475 1478
      * @param   Context $context
1476 1479
      *
1477 1480
      * @return  void
Please login to merge, or discard this patch.
Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -691,6 +691,7 @@
 block discarded – undo
691 691
      * @param  string|null $cased_method_id
692 692
      * @param  FunctionLikeParameter|null $last_param
693 693
      * @param  array<int, FunctionLikeParameter> $function_params
694
+     * @param FunctionLikeParameter[] $function_params
694 695
      * @return false|null
695 696
      */
696 697
     private static function handlePossiblyMatchingByRefParam(
Please login to merge, or discard this patch.
Analyzer/Statements/Expression/Assignment/ArrayAssignmentAnalyzer.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -69,6 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
     /**
71 71
      *
72
+     * @param PhpParser\Node\Expr|null $assign_value
72 73
      * @return false|null
73 74
      */
74 75
     public static function updateArrayType(
@@ -777,6 +778,7 @@  discard block
 block discarded – undo
777 778
 
778 779
     /**
779 780
      * @param list<int|string> $key_values
781
+     * @param string|null $array_var_id
780 782
      */
781 783
     private static function taintArrayAssignment(
782 784
         StatementsAnalyzer $statements_analyzer,
Please login to merge, or discard this patch.