1 | <?php |
||
24 | class PunctuationParser implements InlineParserInterface |
||
25 | { |
||
26 | private $coreParser; |
||
27 | |||
28 | public function __construct() |
||
33 | |||
34 | /** |
||
35 | * @return string[] |
||
36 | */ |
||
37 | public function getCharacters(): array |
||
41 | |||
42 | /** |
||
43 | * @param InlineParserContext $inlineContext |
||
44 | * |
||
45 | * @return bool |
||
46 | */ |
||
47 | public function parse(InlineParserContext $inlineContext): bool |
||
51 | } |
||
52 |
If you suppress an error, we recommend checking for the error condition explicitly: