diff --git a/src/Containers/DocumentTags/TitleTagInterface.php b/src/Containers/DocumentTags/TitleTagInterface.php index fa8046f..fec8c08 100644 --- a/src/Containers/DocumentTags/TitleTagInterface.php +++ b/src/Containers/DocumentTags/TitleTagInterface.php @@ -2,10 +2,8 @@ namespace ByJoby\HTML\Containers\DocumentTags; -use Stringable; +use ByJoby\HTML\Tags\ContentTagInterface; -interface TitleTagInterface +interface TitleTagInterface extends ContentTagInterface { - public function setContent(string|Stringable $content): static; - public function content(): string|Stringable; } \ No newline at end of file diff --git a/tests/Html5/DocumentTags/TitleTagTest.php b/tests/Html5/DocumentTags/TitleTagTest.php index 44a4ab2..cb2906f 100644 --- a/tests/Html5/DocumentTags/TitleTagTest.php +++ b/tests/Html5/DocumentTags/TitleTagTest.php @@ -6,7 +6,7 @@ use PHPUnit\Framework\TestCase; class TitleTagTest extends TestCase { - public function testGetAndSet() + public function testGetAndSet(): void { $title = new TitleTag; $this->assertEquals('Untitled', $title->content());