Test Setup Failed
Pull Request — master (#3477)
by Joe
05:41
created
src/Psalm/Internal/TypeVisitor/TypeChecker.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace Psalm\Internal\TypeVisitor;
3 3
 
4 4
 use Psalm\CodeLocation;
5
-use Psalm\Internal\Analyzer\Statements\ExpressionAnalyzer;
6 5
 use Psalm\Internal\Analyzer\ClassLikeAnalyzer;
7 6
 use Psalm\Internal\Analyzer\TypeAnalyzer;
8 7
 use Psalm\Storage\MethodStorage;
Please login to merge, or discard this patch.
src/Psalm/Internal/TypeVisitor/TypeScanner.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -20,6 +20,7 @@
 block discarded – undo
20 20
 
21 21
     /**
22 22
      * @param  array<string, mixed> $phantom_classes
23
+     * @param null|FileStorage $file_storage
23 24
      *
24 25
      * @return void
25 26
      */
Please login to merge, or discard this patch.
src/Psalm/IssueBuffer.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,6 @@
 block discarded – undo
22 22
 use Psalm\Report\GithubActionsReport;
23 23
 use Psalm\Report\JsonReport;
24 24
 use Psalm\Report\JsonSummaryReport;
25
-use Psalm\Report\JunitReport;
26 25
 use Psalm\Report\PylintReport;
27 26
 use Psalm\Report\SonarqubeReport;
28 27
 use Psalm\Report\TextReport;
Please login to merge, or discard this patch.
src/Psalm/Plugin/Hook/FunctionReturnTypeProviderInterface.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     /**
18 18
      * @param  array<PhpParser\Node\Arg>    $call_args
19 19
      *
20
-     * @return ?Type\Union
20
+     * @return Type\Union|null
21 21
      */
22 22
     public static function getFunctionReturnType(
23 23
         StatementsSource $statements_source,
Please login to merge, or discard this patch.
src/Psalm/Plugin/Hook/PropertyTypeProviderInterface.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
     public static function getClassLikeNames() : array;
15 15
 
16 16
     /**
17
-     * @param  array<PhpParser\Node\Arg>    $call_args
18 17
      *
19 18
      * @return ?Type\Union
20 19
      */
Please login to merge, or discard this patch.
src/Psalm/Report.php 1 patch
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -63,9 +63,6 @@
 block discarded – undo
63 63
     /**
64 64
      * @param array<int, IssueData> $issues_data
65 65
      * @param array<string, int> $fixable_issue_counts
66
-     * @param bool $use_color
67
-     * @param bool $show_snippet
68
-     * @param bool $show_info
69 66
      */
70 67
     public function __construct(
71 68
         array $issues_data,
Please login to merge, or discard this patch.
src/Psalm/Type/Algebra.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -471,6 +471,7 @@
 block discarded – undo
471 471
      * @param  list<Clause>  $clauses
472 472
      * @param  array<string, bool> $cond_referenced_var_ids
473 473
      * @param  array<string, array<int, array<int, string>>> $active_truths
474
+     * @param integer $creating_object_id
474 475
      *
475 476
      * @return array<string, array<int, array<int, string>>>
476 477
      */
Please login to merge, or discard this patch.
src/Psalm/Type/Atomic.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -453,7 +453,7 @@
 block discarded – undo
453 453
                     $this->extra_types
454 454
                     && array_filter(
455 455
                         $this->extra_types,
456
-                        /** @param Atomic $a */
456
+                        /** @param Codebase $a */
457 457
                         function (Atomic $a) use ($codebase) : bool {
458 458
                             return $a->hasArrayAccessInterface($codebase);
459 459
                         }
Please login to merge, or discard this patch.
Unused Use Statements   -12 removed lines patch added patch discarded remove patch
@@ -9,21 +9,9 @@
 block discarded – undo
9 9
 use function get_class;
10 10
 use function is_numeric;
11 11
 use Psalm\Codebase;
12
-use Psalm\CodeLocation;
13
-use Psalm\Internal\Analyzer\ClassLikeAnalyzer;
14
-use Psalm\Internal\Analyzer\Statements\ExpressionAnalyzer;
15 12
 use Psalm\Internal\Analyzer\StatementsAnalyzer;
16
-use Psalm\Internal\Analyzer\TypeAnalyzer;
17 13
 use Psalm\Internal\Type\TemplateResult;
18 14
 use Psalm\Internal\Type\TypeAlias;
19
-use Psalm\Issue\InvalidTemplateParam;
20
-use Psalm\Issue\MissingTemplateParam;
21
-use Psalm\Issue\ReservedWord;
22
-use Psalm\Issue\TooManyTemplateParams;
23
-use Psalm\Issue\UndefinedConstant;
24
-use Psalm\IssueBuffer;
25
-use Psalm\StatementsSource;
26
-use Psalm\Storage\FileStorage;
27 15
 use Psalm\Type;
28 16
 use Psalm\Type\Atomic\ObjectLike;
29 17
 use Psalm\Type\Atomic\TArray;
Please login to merge, or discard this patch.
src/Psalm/Type/Atomic/CallableTrait.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,11 +5,9 @@
 block discarded – undo
5 5
 use function count;
6 6
 use function implode;
7 7
 use Psalm\Codebase;
8
-use Psalm\CodeLocation;
9 8
 use Psalm\Internal\Analyzer\StatementsAnalyzer;
10 9
 use Psalm\Internal\Type\TemplateResult;
11 10
 use Psalm\Internal\Type\UnionTemplateHandler;
12
-use Psalm\StatementsSource;
13 11
 use Psalm\Storage\FunctionLikeParameter;
14 12
 use Psalm\Type;
15 13
 use Psalm\Type\Atomic;
Please login to merge, or discard this patch.