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 {
151151```
152152
153153``` php
154+ use PhpParser\Node;
155+ use PhpParser\Node\Expr\MethodCall;
156+ use PHPStan\Analyser\Scope;
154157use ReflectionMethod;
155158use ShipMonk\PHPStan\DeadCode\Graph\ClassMethodRef;
156159use ShipMonk\PHPStan\DeadCode\Graph\ClassMethodUsage;
@@ -183,7 +186,7 @@ class DeserializationUsageProvider implements MemberUsageProvider
183186 $serializedClass = $scope->getType($secondArgument)->getConstantStrings()[0];
184187
185188 // 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);
187190
188191 // record the hidden constructor call
189192 $constructorRef = new ClassMethodRef($serializedClass->getValue(), '__construct', false);
You can’t perform that action at this time.
0 commit comments