Skip to content

Commit 9564625

Browse files
fix: resolve lint error (#452)
1 parent 05c72ad commit 9564625

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Core/Conversion.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,10 @@ private static function tryConvert(Converter|ConverterSource|string $target, mix
172172
}
173173

174174
if ($value instanceof \Generator) {
175-
return implode('', iterator_to_array($value));
175+
/** @var array<string> $parts */
176+
$parts = iterator_to_array($value);
177+
178+
return implode('', $parts);
176179
}
177180

178181
++$state->no;

0 commit comments

Comments
 (0)