Skip to content

Commit 0fc9d31

Browse files
committed
Use trigger_deprecation() for deprecation message for sort tag.
1 parent ceb25e3 commit 0fc9d31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Twig/TwigSortTokenParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class TwigSortTokenParser extends AbstractTokenParser {
1919
* {@inheritdoc}
2020
*/
2121
public function parse(Token $token): Node {
22-
\trigger_error('The sort tag is deprecated in 3.6.0 and will be removed in 5.x, use the sort_namespaces twig filter.', \E_USER_WARNING);
22+
\trigger_deprecation('chi-teck/drupal-code-generator', '3.6.0', 'The sort twig tag is deprecated and will be removed in 5.x, use the sort_namespaces twig filter.');
2323
$this->parser->getStream()->expect(Token::BLOCK_END_TYPE);
2424
$body = $this->parser->subparse(
2525
static fn (Token $token): bool => $token->test('endsort'),

0 commit comments

Comments
 (0)