Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 285b49f

Browse files
authored
Merge constantTypes with expressionTypes
1 parent 1ec058d commit 285b49f

File tree

8 files changed

+55
-156
lines changed

8 files changed

+55
-156
lines changed

‎src/Analyser/DirectScopeFactory.php‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use PHPStan\Reflection\ReflectionProvider;
1414
use PHPStan\Rules\Properties\PropertyReflectionFinder;
1515
use PHPStan\ShouldNotHappenException;
16-
use PHPStan\Type\Type;
1716
use function is_a;
1817

1918
/**
@@ -45,7 +44,6 @@ public function __construct(
4544
}
4645

4746
/**
48-
* @param array<string, Type> $constantTypes
4947
* @param ExpressionTypeHolder[] $expressionTypes
5048
* @param array<string, ConditionalExpressionHolder[]> $conditionalExpressions
5149
* @param array<string, true> $currentlyAssignedExpressions
@@ -57,7 +55,6 @@ public function __construct(
5755
public function create(
5856
ScopeContext $context,
5957
bool $declareStrictTypes = false,
60-
array $constantTypes = [],
6158
FunctionReflection|MethodReflection|null $function = null,
6259
?string $namespace = null,
6360
array $expressionTypes = [],
@@ -93,7 +90,6 @@ public function create(
9390
$context,
9491
$this->phpVersion,
9592
$declareStrictTypes,
96-
$constantTypes,
9793
$function,
9894
$namespace,
9995
$expressionTypes,

‎src/Analyser/LazyScopeFactory.php‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use PHPStan\Reflection\ReflectionProvider;
1414
use PHPStan\Rules\Properties\PropertyReflectionFinder;
1515
use PHPStan\ShouldNotHappenException;
16-
use PHPStan\Type\Type;
1716
use function is_a;
1817

1918
class LazyScopeFactory implements ScopeFactory
@@ -39,7 +38,6 @@ public function __construct(
3938
}
4039

4140
/**
42-
* @param array<string, Type> $constantTypes
4341
* @param ExpressionTypeHolder[] $expressionTypes
4442
* @param array<string, ConditionalExpressionHolder[]> $conditionalExpressions
4543
* @param array<string, true> $currentlyAssignedExpressions
@@ -51,7 +49,6 @@ public function __construct(
5149
public function create(
5250
ScopeContext $context,
5351
bool $declareStrictTypes = false,
54-
array $constantTypes = [],
5552
FunctionReflection|MethodReflection|null $function = null,
5653
?string $namespace = null,
5754
array $expressionTypes = [],
@@ -87,7 +84,6 @@ public function create(
8784
$context,
8885
$this->container->getByType(PhpVersion::class),
8986
$declareStrictTypes,
90-
$constantTypes,
9187
$function,
9288
$namespace,
9389
$expressionTypes,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /