@@ -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, |
@@ -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 | { |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | use Psalm\Exception\TypeParseTreeException; |
| 10 | 10 | use Psalm\FileSource; |
| 11 | 11 | use Psalm\Internal\Scanner\ClassLikeDocblockComment; |
| 12 | -use Psalm\Internal\Scanner\DocblockParser; |
|
| 13 | 12 | use Psalm\Internal\Scanner\FunctionDocblockComment; |
| 14 | 13 | use Psalm\Internal\Scanner\VarDocblockComment; |
| 15 | 14 | use Psalm\Internal\Scanner\ParsedDocblock; |
@@ -256,6 +256,7 @@ discard block |
||
| 256 | 256 | /** |
| 257 | 257 | * @param Aliases $aliases |
| 258 | 258 | * @param array<string, TypeAlias> $type_aliases |
| 259 | + * @param string|null $self_fqcln |
|
| 259 | 260 | * |
| 260 | 261 | * @throws DocblockParseException if there was a problem parsing the docblock |
| 261 | 262 | * |
@@ -361,7 +362,6 @@ discard block |
||
| 361 | 362 | } |
| 362 | 363 | |
| 363 | 364 | /** |
| 364 | - * @param int $line_number |
|
| 365 | 365 | * |
| 366 | 366 | * @throws DocblockParseException if there was a problem parsing the docblock |
| 367 | 367 | * |
@@ -3,7 +3,6 @@ |
||
| 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; |
@@ -5,7 +5,6 @@ |
||
| 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 |