We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49c9a89 commit 9c3b765Copy full SHA for 9c3b765
src/Reflection/ParametersAcceptorSelector.php
@@ -5,6 +5,7 @@
5
use PhpParser\Node\Expr\FuncCall;
6
use PhpParser\Node\Name;
7
use PHPStan\Analyser\Scope;
8
+use PHPStan\DependencyInjection\BleedingEdgeToggle;
9
use PHPStan\Reflection\Native\NativeParameterReflection;
10
use PHPStan\Reflection\Php\DummyParameter;
11
use PHPStan\TrinaryLogic;
@@ -48,7 +49,11 @@ public static function selectFromArgs(
48
49
{
50
$types = [];
51
$unpack = false;
- if (count($args) > 0 && count($parametersAcceptors) > 0) {
52
+ if (
53
+ BleedingEdgeToggle::isBleedingEdge()
54
+ && count($args) > 0
55
+ && count($parametersAcceptors) > 0
56
+ ) {
57
$functionName = null;
58
$argParent = $args[0]->getAttribute('parent');
59
if ($argParent instanceof FuncCall && $argParent->name instanceof Name) {
0 commit comments