@@ -61,7 +61,6 @@ |
||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | - * @param array<PhpParser\Node\Arg> $call_args |
|
| 65 | 64 | * |
| 66 | 65 | * @return ?bool |
| 67 | 66 | */ |
@@ -3,8 +3,6 @@ |
||
| 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; |
@@ -1,8 +1,6 @@ |
||
| 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; |
@@ -2,12 +2,6 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | namespace Psalm\Internal\Codebase; |
| 4 | 4 | |
| 5 | -use Psalm\CodeLocation; |
|
| 6 | -use Psalm\Internal\Analyzer\StatementsAnalyzer; |
|
| 7 | -use Psalm\Internal\Provider\ClassLikeStorageProvider; |
|
| 8 | -use Psalm\Internal\Provider\FileReferenceProvider; |
|
| 9 | -use Psalm\Internal\Provider\FileStorageProvider; |
|
| 10 | -use Psalm\Internal\Taint\Path; |
|
| 11 | 5 | use Psalm\Internal\Taint\Sink; |
| 12 | 6 | use Psalm\Internal\Taint\Source; |
| 13 | 7 | use Psalm\Internal\Taint\TaintNode; |
@@ -17,7 +11,6 @@ discard block |
||
| 17 | 11 | use function array_merge; |
| 18 | 12 | use function array_merge_recursive; |
| 19 | 13 | use function strtolower; |
| 20 | -use UnexpectedValueException; |
|
| 21 | 14 | use function count; |
| 22 | 15 | use function implode; |
| 23 | 16 | use function substr; |
@@ -218,6 +218,8 @@ |
||
| 218 | 218 | /** |
| 219 | 219 | * @param PhpParser\Node\Expr $stmt |
| 220 | 220 | * @param string $file_name |
| 221 | + * @param \Psalm\Internal\Provider\NodeDataProvider|null $type_provider |
|
| 222 | + * @param StatementsAnalyzer|null $statements_analyzer |
|
| 221 | 223 | * |
| 222 | 224 | * @return string|null |
| 223 | 225 | * @psalm-suppress MixedAssignment |
@@ -3,8 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | use PhpParser; |
| 5 | 5 | use Psalm\Internal\Codebase\InternalCallMapHandler; |
| 6 | -use Psalm\Internal\Taint\TaintNode; |
|
| 7 | -use Psalm\CodeLocation; |
|
| 8 | 6 | use Psalm\Context; |
| 9 | 7 | use Psalm\Type; |
| 10 | 8 | use function strtolower; |
@@ -49,6 +49,7 @@ |
||
| 49 | 49 | /** |
| 50 | 50 | * @param string $method_id |
| 51 | 51 | * @param array<int, PhpParser\Node\Arg> $args |
| 52 | + * @param \Psalm\Internal\Provider\NodeDataProvider|null $nodes |
|
| 52 | 53 | * |
| 53 | 54 | * @return TCallable |
| 54 | 55 | */ |
@@ -48,6 +48,7 @@ discard block |
||
| 48 | 48 | /** |
| 49 | 49 | * @param string[] $suppressed_issues |
| 50 | 50 | * @param 0|1|2 $failed_reconciliation |
| 51 | + * @param CodeLocation $code_location |
|
| 51 | 52 | */ |
| 52 | 53 | public static function reconcile( |
| 53 | 54 | string $assertion, |
@@ -368,6 +369,7 @@ discard block |
||
| 368 | 369 | /** |
| 369 | 370 | * @param string[] $suppressed_issues |
| 370 | 371 | * @param 0|1|2 $failed_reconciliation |
| 372 | + * @param null|integer $min_count |
|
| 371 | 373 | */ |
| 372 | 374 | private static function reconcileNonEmptyCountable( |
| 373 | 375 | Union $existing_var_type, |
@@ -1227,8 +1229,6 @@ discard block |
||
| 1227 | 1229 | } |
| 1228 | 1230 | |
| 1229 | 1231 | /** |
| 1230 | - * @param string[] $suppressed_issues |
|
| 1231 | - * @param 0|1|2 $failed_reconciliation |
|
| 1232 | 1232 | */ |
| 1233 | 1233 | private static function reconcileInArray( |
| 1234 | 1234 | Codebase $codebase, |
@@ -1271,8 +1271,6 @@ discard block |
||
| 1271 | 1271 | } |
| 1272 | 1272 | |
| 1273 | 1273 | /** |
| 1274 | - * @param string[] $suppressed_issues |
|
| 1275 | - * @param 0|1|2 $failed_reconciliation |
|
| 1276 | 1274 | */ |
| 1277 | 1275 | private static function reconcileHasArrayKey( |
| 1278 | 1276 | Union $existing_var_type, |
@@ -178,7 +178,6 @@ |
||
| 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 | { |