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 55use PhpParser \Node \Expr \FuncCall ;
66use PhpParser \Node \Name ;
77use PHPStan \Analyser \Scope ;
8+ use PHPStan \DependencyInjection \BleedingEdgeToggle ;
89use PHPStan \Reflection \Native \NativeParameterReflection ;
910use PHPStan \Reflection \Php \DummyParameter ;
1011use PHPStan \TrinaryLogic ;
@@ -48,7 +49,11 @@ public static function selectFromArgs(
4849 {
4950 $ types = [];
5051 $ unpack = false ;
51- if (count ($ args ) > 0 && count ($ parametersAcceptors ) > 0 ) {
52+ if (
53+ BleedingEdgeToggle::isBleedingEdge ()
54+ && count ($ args ) > 0
55+ && count ($ parametersAcceptors ) > 0
56+ ) {
5257 $ functionName = null ;
5358 $ argParent = $ args [0 ]->getAttribute ('parent ' );
5459 if ($ argParent instanceof FuncCall && $ argParent ->name instanceof Name) {
You can’t perform that action at this time.
0 commit comments