PHPStan fix

This commit is contained in:
Joby 2023-09-09 03:56:10 +00:00
parent 713446093a
commit 885975e3b4
2 changed files with 3 additions and 5 deletions

View file

@ -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;
}

View file

@ -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());