Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #36265 Fix the reporting of deprecations in twig:lint (stof)
This PR was merged into the 4.4 branch. Discussion ---------- Fix the reporting of deprecations in twig:lint | Q | A | ------------- | --- | Branch? | 4.4 (the `--show-deprecations` option does not exist in 3.4) | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | n/a | License | MIT | Doc PR | n/a - ensure that the message is rendered when the line detection fails and we end up with 0 as line number (the implementation also deals with -1 which is sometimes used by Twig for errors when it does not know the line, even though this should not happen for compile-time errors). - fix the detection of the line number when the number is at the end of the sentence, which happens for the deprecation of filters for instance. Commits ------- c329ca7 Fix the reporting of deprecations in twig:lint
- Loading branch information
Showing
2 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters