From 885975e3b495fbd4f0b526e4943e5e51463f7d6e Mon Sep 17 00:00:00 2001 From: Joby Elliott Date: Sat, 9 Sep 2023 03:56:10 +0000 Subject: [PATCH] PHPStan fix --- src/Containers/DocumentTags/TitleTagInterface.php | 6 ++---- tests/Html5/DocumentTags/TitleTagTest.php | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) 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());