Skip to content
Merged
Prev Previous commit
Next Next commit
Update SprintfFunctionDynamicReturnTypeExtension.php
  • Loading branch information
staabm committed Jul 13, 2024
commit fd5b5c900c83e228d5f1da1ba85e8743777004fb
2 changes: 1 addition & 1 deletion src/Type/Php/SprintfFunctionDynamicReturnTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function getTypeFromFunctionCall(

if ($matches[2] === 's'
&& $checkArgType->isScalar()->yes()
&& $checkArgType->getFiniteTypes() === []
&& $checkArgType->getFiniteTypes() === [] // constant types will be handled in getConstantType()
) {
$singlePlaceholderEarlyReturn = $checkArgType->toString();
} elseif ($matches[2] !== 's') {
Expand Down