Skip to content

Commit 14af474

Browse files
CopilotOskarStark
andcommitted
Apply Symfony code style conventions
Co-authored-by: OskarStark <995707+OskarStark@users.noreply.github.com>
1 parent 4dac1e3 commit 14af474

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agent/src/Toolbox/StreamResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function getContent(): \Generator
4242
// Strings are iterable in PHP but yield from would iterate character-by-character.
4343
// We need to yield the complete string as a single value to preserve streaming behavior.
4444
// null should also be yielded as-is.
45-
if (is_string($content) || $content === null || !is_iterable($content)) {
45+
if (\is_string($content) || null === $content || !is_iterable($content)) {
4646
yield $content;
4747
} else {
4848
yield from $content;

0 commit comments

Comments
 (0)