Skip to content

Commit 7d306fb

Browse files
herndlmondrejmirtes
authored andcommitted
Remove unneeded var in narrowTypeForJsonDecode
1 parent 741abd2 commit 7d306fb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Type/Php/JsonThrowOnErrorDynamicReturnTypeExtension.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ private function narrowTypeForJsonDecode(FuncCall $funcCall, Scope $scope, Type
7878
$args = $funcCall->getArgs();
7979
$isArrayWithoutStdClass = $this->isForceArrayWithoutStdClass($funcCall, $scope);
8080

81-
$firstArgValue = $args[0]->value;
82-
$firstValueType = $scope->getType($firstArgValue);
83-
81+
$firstValueType = $scope->getType($args[0]->value);
8482
if ($firstValueType instanceof ConstantStringType) {
8583
return $this->resolveConstantStringType($firstValueType, $isArrayWithoutStdClass);
8684
}

0 commit comments

Comments
 (0)