Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix the reporting of deprecations in twig:lint#36265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@stof
Copy link
Member

QA
Branch?4.4 (the--show-deprecations option does not exist in 3.4)
Bug fix?yes
New feature?no
Deprecations?no
Ticketsn/a
LicenseMIT
Doc PRn/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.

@nicolas-grekasnicolas-grekas added this to the4.4 milestoneMar 30, 2020
@stofstofforce-pushed thefix_twig_deprecation_reporting branch from8910be7 to8b1b8afCompareMarch 30, 2020 14:53
- 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.
@nicolas-grekasnicolas-grekasforce-pushed thefix_twig_deprecation_reporting branch from8b1b8af toc329ca7CompareMarch 31, 2020 18:14
@nicolas-grekas
Copy link
Member

Thank you@stof.

@nicolas-grekasnicolas-grekas merged commita5af8f6 intosymfony:4.4Mar 31, 2020
@stofstof deleted the fix_twig_deprecation_reporting branchApril 1, 2020 17:52
This was referencedApr 28, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh approved these changes

@ycerutoycerutoyceruto approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

5 participants

@stof@nicolas-grekas@xabbuh@yceruto@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp