@@ -7,7 +7,6 @@ |
||
| 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; |
@@ -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 | */ |
@@ -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; |
@@ -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, |