File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
tests/PHPStan/Rules/Comparison Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 7
7
use PHPStan \Node \Printer \ExprPrinter ;
8
8
use PHPStan \Parser \Parser ;
9
9
use PHPStan \Php \PhpVersion ;
10
- use PHPStan \Reflection \ExtendedMethodReflection ;
11
10
use PHPStan \Reflection \FunctionReflection ;
12
11
use PHPStan \Reflection \InitializerExprTypeResolver ;
13
12
use PHPStan \Reflection \MethodReflection ;
14
13
use PHPStan \Reflection \ParameterReflection ;
15
14
use PHPStan \Reflection \ParametersAcceptor ;
15
+ use PHPStan \Reflection \Php \PhpFunctionFromParserNodeReflection ;
16
16
use PHPStan \Reflection \ReflectionProvider ;
17
17
use PHPStan \Rules \Properties \PropertyReflectionFinder ;
18
18
@@ -46,7 +46,7 @@ public function __construct(
46
46
public function create (
47
47
ScopeContext $ context ,
48
48
bool $ declareStrictTypes = false ,
49
- FunctionReflection | ExtendedMethodReflection |null $ function = null ,
49
+ PhpFunctionFromParserNodeReflection |null $ function = null ,
50
50
?string $ namespace = null ,
51
51
array $ expressionTypes = [],
52
52
array $ nativeExpressionTypes = [],
Original file line number Diff line number Diff line change 2
2
3
3
namespace PHPStan \Analyser ;
4
4
5
- use PHPStan \Reflection \ExtendedMethodReflection ;
6
5
use PHPStan \Reflection \FunctionReflection ;
7
6
use PHPStan \Reflection \MethodReflection ;
8
7
use PHPStan \Reflection \ParameterReflection ;
9
8
use PHPStan \Reflection \ParametersAcceptor ;
9
+ use PHPStan \Reflection \Php \PhpFunctionFromParserNodeReflection ;
10
10
11
11
interface InternalScopeFactory
12
12
{
@@ -23,7 +23,7 @@ interface InternalScopeFactory
23
23
public function create (
24
24
ScopeContext $ context ,
25
25
bool $ declareStrictTypes = false ,
26
- FunctionReflection | ExtendedMethodReflection |null $ function = null ,
26
+ PhpFunctionFromParserNodeReflection |null $ function = null ,
27
27
?string $ namespace = null ,
28
28
array $ expressionTypes = [],
29
29
array $ nativeExpressionTypes = [],
Original file line number Diff line number Diff line change 13
13
use PHPStan \Reflection \MethodReflection ;
14
14
use PHPStan \Reflection \ParameterReflection ;
15
15
use PHPStan \Reflection \ParametersAcceptor ;
16
+ use PHPStan \Reflection \Php \PhpFunctionFromParserNodeReflection ;
16
17
use PHPStan \Reflection \ReflectionProvider ;
17
18
use PHPStan \Rules \Properties \PropertyReflectionFinder ;
18
19
@@ -36,7 +37,7 @@ public function __construct(
36
37
public function create (
37
38
ScopeContext $ context ,
38
39
bool $ declareStrictTypes = false ,
39
- FunctionReflection | ExtendedMethodReflection |null $ function = null ,
40
+ PhpFunctionFromParserNodeReflection |null $ function = null ,
40
41
?string $ namespace = null ,
41
42
array $ expressionTypes = [],
42
43
array $ nativeExpressionTypes = [],
Original file line number Diff line number Diff line change @@ -893,7 +893,6 @@ public function testLowercaseString(): void
893
893
];
894
894
}
895
895
896
- $ this ->checkAlwaysTrueStrictComparison = true ;
897
896
$ this ->analyse ([__DIR__ . '/data/lowercase-string.php ' ], $ errors );
898
897
}
899
898
You can’t perform that action at this time.
0 commit comments