Skip to content

Commit 33c415d

Browse files
committed
simplify
1 parent b3cfcb3 commit 33c415d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/Php/SprintfFunctionDynamicReturnTypeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function getTypeFromFunctionCall(
6060
}
6161

6262
$singlePlaceholderEarlyReturn = null;
63-
foreach ($formatType->getConstantStrings() as $constantString) {
63+
foreach ($formatStrings as $constantString) {
6464
// The printf format is %[argnum$][flags][width][.precision]
6565
if (preg_match('/^%([0-9]*\$)?[0-9]*\.?[0-9]*([sbdeEfFgGhHouxX])$/', $constantString->getValue(), $matches) === 1) {
6666
if ($matches[1] !== '') {

0 commit comments

Comments
 (0)