We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dac1e3 commit 14af474Copy full SHA for 14af474
src/agent/src/Toolbox/StreamResult.php
@@ -42,7 +42,7 @@ public function getContent(): \Generator
42
// Strings are iterable in PHP but yield from would iterate character-by-character.
43
// We need to yield the complete string as a single value to preserve streaming behavior.
44
// null should also be yielded as-is.
45
- if (is_string($content) || $content === null || !is_iterable($content)) {
+ if (\is_string($content) || null === $content || !is_iterable($content)) {
46
yield $content;
47
} else {
48
yield from $content;
0 commit comments