File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 5
5
use PhpParser \Node \Expr \FuncCall ;
6
6
use PhpParser \Node \Name ;
7
7
use PHPStan \Analyser \Scope ;
8
+ use PHPStan \DependencyInjection \BleedingEdgeToggle ;
8
9
use PHPStan \Reflection \Native \NativeParameterReflection ;
9
10
use PHPStan \Reflection \Php \DummyParameter ;
10
11
use PHPStan \TrinaryLogic ;
@@ -48,7 +49,11 @@ public static function selectFromArgs(
48
49
{
49
50
$ types = [];
50
51
$ unpack = false ;
51
- if (count ($ args ) > 0 && count ($ parametersAcceptors ) > 0 ) {
52
+ if (
53
+ BleedingEdgeToggle::isBleedingEdge ()
54
+ && count ($ args ) > 0
55
+ && count ($ parametersAcceptors ) > 0
56
+ ) {
52
57
$ functionName = null ;
53
58
$ argParent = $ args [0 ]->getAttribute ('parent ' );
54
59
if ($ argParent instanceof FuncCall && $ argParent ->name instanceof Name) {
You can’t perform that action at this time.
0 commit comments