Skip to content

Commit 379711f

Browse files
All Streamable implementations are valid a XHPChild
This should have always been the case, see `<p>{$streamble}</p>`.
1 parent fe6b9f5 commit 379711f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Streamable.hack

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
/** sgml-stream-interfaces is MIT licensed, see /LICENSE. */
22
namespace HTL\SGMLStreamInterfaces;
33

4+
use type XHPChild;
5+
46
/**
57
* Classes which desire to render in Snippets. Implementations may decide to
68
* throw a UseAfterRenderException when it is asked to render itself multiple
79
* times.
810
*/
9-
interface Streamable {
11+
interface Streamable extends XHPChild {
1012
/**
1113
* Must insert its content into $stream while the call has not yet returned
1214
* or thrown. Implementations may not insert content after the method has

0 commit comments

Comments
 (0)