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.
StreamChunk
TextChunk
1 parent b19c67f commit a2fa527Copy full SHA for a2fa527
src/platform/src/Result/StreamChunk.php src/platform/src/Result/TextChunk.phpsrc/platform/src/Result/StreamChunk.php renamed to src/platform/src/Result/TextChunk.php
@@ -14,22 +14,22 @@
14
/**
15
* @author Oscar Esteve <oscarsdt@gmail.com>
16
*/
17
-final class StreamChunk extends BaseResult implements \Stringable
+final class TextChunk extends BaseResult implements \Stringable
18
{
19
20
- * @param string|iterable<mixed>|object|null $content
+ * @param string $content
21
22
public function __construct(
23
- private readonly string|iterable|object|null $content,
+ private readonly string $content,
24
) {
25
}
26
27
public function __toString(): string
28
29
- return (string) $this->content;
+ return $this->content;
30
31
32
- public function getContent(): string|iterable|object|null
+ public function getContent(): string
33
34
return $this->content;
35
0 commit comments