Skip to content

Commit b2720ea

Browse files
committed
Add invalid tag interface
1 parent b5c48eb commit b2720ea

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Diff for: src/Tag/InvalidTag.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace TypeLang\PHPDoc\Tag;
66

7-
final class InvalidTag extends Tag
7+
final class InvalidTag extends Tag implements InvalidTagInterface
88
{
99
/**
1010
* @var non-empty-string

Diff for: src/Tag/InvalidTagInterface.php

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace TypeLang\PHPDoc\Tag;
6+
7+
interface InvalidTagInterface extends TagInterface
8+
{
9+
/**
10+
* Returns the reason why this tag is invalid.
11+
*/
12+
public function getReason(): \Throwable;
13+
}

0 commit comments

Comments
 (0)