1 | <?php |
||
24 | class SmartPunctExtension implements ExtensionInterface |
||
25 | { |
||
26 | private $coreExtension; |
||
27 | |||
28 | 51 | public function __construct() |
|
29 | { |
||
30 | 51 | @trigger_error(sprintf('league/commonmark-ext-smartpunct is deprecated; use %s from league/commonmark 1.3+ instead', CoreExtension::class), E_USER_DEPRECATED); |
|
|
|||
31 | 51 | $this->coreExtension = new CoreExtension(); |
|
32 | 51 | } |
|
33 | |||
34 | 51 | public function register(ConfigurableEnvironmentInterface $environment) |
|
38 | } |
||
39 |
If you suppress an error, we recommend checking for the error condition explicitly: