diff --git a/extension.neon b/extension.neon index c8c147f..d8bd73a 100644 --- a/extension.neon +++ b/extension.neon @@ -18,6 +18,7 @@ parameters: - stubs/Forms/Container.stub - stubs/Forms/Form.stub - stubs/Forms/Rules.stub + - stubs/HtmlStringable.stub - stubs/Http/SessionSection.stub - stubs/Routing/Router.stub - stubs/Utils/ArrayHash.stub diff --git a/stubs/HtmlStringable.stub b/stubs/HtmlStringable.stub new file mode 100644 index 0000000..17cf7c7 --- /dev/null +++ b/stubs/HtmlStringable.stub @@ -0,0 +1,10 @@ + * @implements \ArrayAccess @@ -17,4 +19,12 @@ class Html implements \ArrayAccess, \IteratorAggregate // nothing } + /** + * @param string|HtmlStringable $child + */ + final public function addHtml(mixed $child): static + { + // nothing + } + }