Test Setup Failed
Pull Request — master (#3813)
by Evgeniy
05:19 queued 14s
created
src/Psalm/Type/Reconciler.php 1 patch
Unused Use Statements   -15 removed lines patch added patch discarded remove patch
@@ -11,8 +11,6 @@  discard block
 block discarded – undo
11 11
 use Psalm\Codebase;
12 12
 use Psalm\CodeLocation;
13 13
 use Psalm\Internal\Analyzer\StatementsAnalyzer;
14
-use Psalm\Internal\Analyzer\Statements\ExpressionAnalyzer;
15
-use Psalm\Internal\Analyzer\TraitAnalyzer;
16 14
 use Psalm\Internal\Type\AssertionReconciler;
17 15
 use Psalm\Issue\DocblockTypeContradiction;
18 16
 use Psalm\Issue\PsalmInternalError;
@@ -22,34 +20,21 @@  discard block
 block discarded – undo
22 20
 use Psalm\IssueBuffer;
23 21
 use Psalm\Type;
24 22
 use Psalm\Type\Atomic\ObjectLike;
25
-use Psalm\Type\Atomic\Scalar;
26 23
 use Psalm\Type\Atomic\TArray;
27
-use Psalm\Type\Atomic\TArrayKey;
28
-use Psalm\Type\Atomic\TBool;
29
-use Psalm\Type\Atomic\TCallable;
30
-use Psalm\Type\Atomic\TCallableObjectLikeArray;
31
-use Psalm\Type\Atomic\TClassString;
32 24
 use Psalm\Type\Atomic\TEmpty;
33 25
 use Psalm\Type\Atomic\TFalse;
34
-use Psalm\Type\Atomic\TInt;
35 26
 use Psalm\Type\Atomic\TMixed;
36 27
 use Psalm\Type\Atomic\TNamedObject;
37 28
 use Psalm\Type\Atomic\TNull;
38
-use Psalm\Type\Atomic\TNumeric;
39
-use Psalm\Type\Atomic\TNumericString;
40 29
 use Psalm\Type\Atomic\TObject;
41
-use Psalm\Type\Atomic\TResource;
42
-use Psalm\Type\Atomic\TScalar;
43 30
 use Psalm\Type\Atomic\TString;
44 31
 use Psalm\Type\Atomic\TTemplateParam;
45
-use Psalm\Type\Atomic\TTrue;
46 32
 use function sort;
47 33
 use function str_replace;
48 34
 use function str_split;
49 35
 use function strpos;
50 36
 use function strtolower;
51 37
 use function substr;
52
-use Exception;
53 38
 
54 39
 class Reconciler
55 40
 {
Please login to merge, or discard this patch.
src/Psalm/Type/Union.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
 use Psalm\Storage\FileStorage;
19 19
 use Psalm\Type;
20 20
 use Psalm\Type\Atomic\TFloat;
21
-use Psalm\Type\Atomic\TGenericObject;
22 21
 use Psalm\Type\Atomic\TInt;
23 22
 use Psalm\Type\Atomic\TIterable;
24 23
 use Psalm\Type\Atomic\TLiteralFloat;
Please login to merge, or discard this patch.
src/Psalm/Internal/Provider/ProjectCacheProvider.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use function file_put_contents;
8 8
 use function is_array;
9 9
 use function is_readable;
10
-use Psalm\Internal\Analyzer\IssueData;
11 10
 use Psalm\Config;
12 11
 use function serialize;
13 12
 use function unserialize;
Please login to merge, or discard this patch.
src/Psalm/Type/Atomic/TList.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use function get_class;
5 5
 use Psalm\Codebase;
6
-use Psalm\CodeLocation;
7
-use Psalm\StatementsSource;
8 6
 use Psalm\Internal\Analyzer\StatementsAnalyzer;
9 7
 use Psalm\Internal\Type\TemplateResult;
10 8
 use Psalm\Internal\Type\UnionTemplateHandler;
Please login to merge, or discard this patch.
src/Psalm/Type/Atomic/TLiteralClassString.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Psalm\Type\Atomic;
3 3
 
4
-use Psalm\CodeLocation;
5
-use Psalm\StatementsSource;
6 4
 use function preg_quote;
7 5
 use function preg_replace;
8 6
 use function stripos;
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/Stubs/Generator/ClassLikeStubGenerator.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Psalm\Internal\Stubs\Generator;
4 4
 
5 5
 use PhpParser;
6
-use Psalm\Storage\MethodStorage;
7 6
 use Psalm\Storage\ClassLikeStorage;
8 7
 use Psalm\Internal\Scanner\ParsedDocblock;
9 8
 use Psalm\Type;
Please login to merge, or discard this patch.
src/Psalm/Internal/Stubs/Generator/StubsGenerator.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use PhpParser;
6 6
 use Psalm\Internal\Provider;
7 7
 use Psalm\Internal\Scanner\ParsedDocblock;
8
-use Psalm\Storage\MethodStorage;
9 8
 use Psalm\Type;
10 9
 
11 10
 class StubsGenerator
Please login to merge, or discard this patch.
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\Internal\Type\TypeExpander;
Please login to merge, or discard this patch.