Skip to content

Commit

Permalink
minor #4555 add missing parentheses to deprecation message (xabbuh)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.x branch.

Discussion
----------

add missing parentheses to deprecation message

Commits
-------

431697f add missing parentheses to deprecation message
  • Loading branch information
fabpot committed Jan 24, 2025
2 parents 939c032 + 431697f commit d76d2d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function getLine(): int
*/
public function getType(): int
{
trigger_deprecation('twig/twig', '3.19', sprintf('The "%s" method is deprecated.', __METHOD__));
trigger_deprecation('twig/twig', '3.19', sprintf('The "%s()" method is deprecated.', __METHOD__));

return $this->type;
}
Expand Down

0 comments on commit d76d2d7

Please sign in to comment.