1 | <?php |
||
26 | final class QuoteRenderer implements InlineRendererInterface |
||
27 | { |
||
28 | private $coreRenderer; |
||
29 | |||
30 | 10 | public function __construct() |
|
31 | { |
||
32 | 10 | @trigger_error(sprintf('league/commonmark-ext-smartpunct is deprecated; use %s from league/commonmark 1.3+ instead', CoreRenderer::class), E_USER_DEPRECATED); |
|
|
|||
33 | 10 | $this->coreRenderer = new CoreRenderer(); |
|
34 | 10 | } |
|
35 | |||
36 | /** |
||
37 | * @param AbstractInline $inline |
||
38 | * @param ElementRendererInterface $htmlRenderer |
||
39 | * |
||
40 | * @return HtmlElement|string|null |
||
41 | */ |
||
42 | 10 | public function render(AbstractInline $inline, ElementRendererInterface $htmlRenderer) |
|
46 | } |
||
47 |
If you suppress an error, we recommend checking for the error condition explicitly: