Skip to content

Commit c82fd5b

Browse files
committed
HtmlStringable stub support for older PHP versions
1 parent 81750f6 commit c82fd5b

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

Diff for: stubs/HtmlStringable.stub

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
namespace Nette;
44

5-
interface HtmlStringable extends \Stringable
5+
interface HtmlStringable
66
{
77

8+
public function __toString(): string;
9+
810
}

Diff for: stubs/Utils/Html.stub

-8
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ class Html implements \ArrayAccess, \IteratorAggregate
1919
// nothing
2020
}
2121

22-
/**
23-
* @param string|HtmlStringable $html
24-
*/
25-
public function setHtml(mixed $html): static
26-
{
27-
// nothing
28-
}
29-
3022
/**
3123
* @param string|HtmlStringable $child
3224
*/

0 commit comments

Comments
 (0)