Skip to content

Commit

Permalink
PHPStan fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Joby Elliott committed Sep 9, 2023
1 parent 7134460 commit 885975e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/Containers/DocumentTags/TitleTagInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion tests/Html5/DocumentTags/TitleTagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class TitleTagTest extends TestCase
{
public function testGetAndSet()
public function testGetAndSet(): void
{
$title = new TitleTag;
$this->assertEquals('Untitled', $title->content());
Expand Down

0 comments on commit 885975e

Please sign in to comment.