Skip to content

Commit d707038

Browse files
TomasVotrubaherndlm
authored andcommitted
Update src/Type/Php/JsonThrowOnErrorDynamicReturnTypeExtension.php
Co-authored-by: Martin Herndl <martin@herndl.org>
1 parent 99debb9 commit d707038

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Type/Php/JsonThrowOnErrorDynamicReturnTypeExtension.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ public function getTypeFromFunctionCall(
7575
$argumentPosition = $this->argumentPositions[$functionReflection->getName()];
7676
$defaultReturnType = ParametersAcceptorSelector::selectSingle($functionReflection->getVariants())->getReturnType();
7777

78-
// narrow type for json_decode()
7978
if ($functionReflection->getName() === 'json_decode') {
8079
$defaultReturnType = $this->narrowTypeForJsonDecode($functionCall, $scope);
8180
}

0 commit comments

Comments
 (0)