File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,9 @@ function test(SerializerInterface $serializer): User {
151
151
```
152
152
153
153
``` php
154
+ use PhpParser\Node;
155
+ use PhpParser\Node\Expr\MethodCall;
156
+ use PHPStan\Analyser\Scope;
154
157
use ReflectionMethod;
155
158
use ShipMonk\PHPStan\DeadCode\Graph\ClassMethodRef;
156
159
use ShipMonk\PHPStan\DeadCode\Graph\ClassMethodUsage;
@@ -183,7 +186,7 @@ class DeserializationUsageProvider implements MemberUsageProvider
183
186
$serializedClass = $scope->getType($secondArgument)->getConstantStrings()[0];
184
187
185
188
// record the method it was called from (needed for proper transitive dead code elimination)
186
- $originRef = $this->originDetector->detectOrigin($node, $ scope);
189
+ $originRef = $this->originDetector->detectOrigin($scope);
187
190
188
191
// record the hidden constructor call
189
192
$constructorRef = new ClassMethodRef($serializedClass->getValue(), '__construct', false);
You can’t perform that action at this time.
0 commit comments