Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions extension.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions stubs/HtmlStringable.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Nette;

interface HtmlStringable
{

public function __toString(): string;

}
10 changes: 10 additions & 0 deletions stubs/Utils/Html.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace Nette\Utils;

use Nette\HtmlStringable;

/**
* @implements \IteratorAggregate<int, self|string>
* @implements \ArrayAccess<int, self|string>
Expand All @@ -17,4 +19,12 @@ class Html implements \ArrayAccess, \IteratorAggregate
// nothing
}

/**
* @param string|HtmlStringable $child
*/
final public function addHtml(mixed $child): static
{
// nothing
}

}