Skip to content

Commit 8ac7858

Browse files
committed
Fix incorrect error level for deprecation notices
1 parent d70e575 commit 8ac7858

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) princi
44

55
## [Unreleased][unreleased]
66

7+
### Fixed
8+
9+
- Fixed incorrect error level for deprecation notices
10+
711
## [1.6.1] - 2021-05-08
812

913
### Fixed

src/CommonMarkConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(array $config = [], EnvironmentInterface $environmen
4040
if ($environment === null) {
4141
$environment = Environment::createCommonMarkEnvironment();
4242
} else {
43-
@\trigger_error(\sprintf('Passing an $environment into the "%s" constructor is deprecated in 1.6 and will not be supported in 2.0; use MarkdownConverter instead', self::class));
43+
@\trigger_error(\sprintf('Passing an $environment into the "%s" constructor is deprecated in 1.6 and will not be supported in 2.0; use MarkdownConverter instead', self::class), \E_USER_DEPRECATED);
4444
}
4545

4646
if ($environment instanceof ConfigurableEnvironmentInterface) {

src/GithubFlavoredMarkdownConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(array $config = [], EnvironmentInterface $environmen
2727
if ($environment === null) {
2828
$environment = Environment::createGFMEnvironment();
2929
} else {
30-
@\trigger_error(\sprintf('Passing an $environment into the "%s" constructor is deprecated in 1.6 and will not be supported in 2.0; use MarkdownConverter instead', self::class));
30+
@\trigger_error(\sprintf('Passing an $environment into the "%s" constructor is deprecated in 1.6 and will not be supported in 2.0; use MarkdownConverter instead', self::class), \E_USER_DEPRECATED);
3131
}
3232

3333
if ($environment instanceof ConfigurableEnvironmentInterface) {

0 commit comments

Comments
 (0)