Skip to content

Commit 4cbe3f6

Browse files
committed
Fix build
1 parent 206f5fa commit 4cbe3f6

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/Analyser/DirectInternalScopeFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
use PHPStan\Node\Printer\ExprPrinter;
88
use PHPStan\Parser\Parser;
99
use PHPStan\Php\PhpVersion;
10-
use PHPStan\Reflection\ExtendedMethodReflection;
1110
use PHPStan\Reflection\FunctionReflection;
1211
use PHPStan\Reflection\InitializerExprTypeResolver;
1312
use PHPStan\Reflection\MethodReflection;
1413
use PHPStan\Reflection\ParameterReflection;
1514
use PHPStan\Reflection\ParametersAcceptor;
15+
use PHPStan\Reflection\Php\PhpFunctionFromParserNodeReflection;
1616
use PHPStan\Reflection\ReflectionProvider;
1717
use PHPStan\Rules\Properties\PropertyReflectionFinder;
1818

@@ -46,7 +46,7 @@ public function __construct(
4646
public function create(
4747
ScopeContext $context,
4848
bool $declareStrictTypes = false,
49-
FunctionReflection|ExtendedMethodReflection|null $function = null,
49+
PhpFunctionFromParserNodeReflection|null $function = null,
5050
?string $namespace = null,
5151
array $expressionTypes = [],
5252
array $nativeExpressionTypes = [],

src/Analyser/InternalScopeFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace PHPStan\Analyser;
44

5-
use PHPStan\Reflection\ExtendedMethodReflection;
65
use PHPStan\Reflection\FunctionReflection;
76
use PHPStan\Reflection\MethodReflection;
87
use PHPStan\Reflection\ParameterReflection;
98
use PHPStan\Reflection\ParametersAcceptor;
9+
use PHPStan\Reflection\Php\PhpFunctionFromParserNodeReflection;
1010

1111
interface InternalScopeFactory
1212
{
@@ -23,7 +23,7 @@ interface InternalScopeFactory
2323
public function create(
2424
ScopeContext $context,
2525
bool $declareStrictTypes = false,
26-
FunctionReflection|ExtendedMethodReflection|null $function = null,
26+
PhpFunctionFromParserNodeReflection|null $function = null,
2727
?string $namespace = null,
2828
array $expressionTypes = [],
2929
array $nativeExpressionTypes = [],

src/Analyser/LazyInternalScopeFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use PHPStan\Reflection\MethodReflection;
1414
use PHPStan\Reflection\ParameterReflection;
1515
use PHPStan\Reflection\ParametersAcceptor;
16+
use PHPStan\Reflection\Php\PhpFunctionFromParserNodeReflection;
1617
use PHPStan\Reflection\ReflectionProvider;
1718
use PHPStan\Rules\Properties\PropertyReflectionFinder;
1819

@@ -36,7 +37,7 @@ public function __construct(
3637
public function create(
3738
ScopeContext $context,
3839
bool $declareStrictTypes = false,
39-
FunctionReflection|ExtendedMethodReflection|null $function = null,
40+
PhpFunctionFromParserNodeReflection|null $function = null,
4041
?string $namespace = null,
4142
array $expressionTypes = [],
4243
array $nativeExpressionTypes = [],

tests/PHPStan/Rules/Comparison/StrictComparisonOfDifferentTypesRuleTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,6 @@ public function testLowercaseString(): void
893893
];
894894
}
895895

896-
$this->checkAlwaysTrueStrictComparison = true;
897896
$this->analyse([__DIR__ . '/data/lowercase-string.php'], $errors);
898897
}
899898

0 commit comments

Comments
 (0)