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

[Yaml] Remove line number in deprecation notices#23108

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
fabpot merged 1 commit intosymfony:3.3fromnicolas-grekas:yaml-aggreg
Jun 9, 2017

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedJun 8, 2017
edited
Loading

QA
Branch?3.3
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-

While moving an app to 3.3, I noticed that my deprecation log is full of deprecation notices that differ only by some line number, but don't tell which file is concerned.
This makes the line number useless, and just prevents aggregation.

capture du 2017-06-08 16-29-31

@stof
Copy link
Member

stof commentedJun 8, 2017

👍

throw$e;
}

if (!(Yaml::PARSE_KEYS_AS_STRINGS &$flags) && !is_string($key)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

integer keys must be allowed, not only string keys (PHP array support integers). Can you also fix it (there is a PR fixing it currently, but together with other changes and so targetting 3.4)

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

like that?

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commitf82b618 intosymfony:3.3Jun 9, 2017
fabpot added a commit that referenced this pull requestJun 9, 2017
…grekas)This PR was merged into the 3.3 branch.Discussion----------[Yaml] Remove line number in deprecation notices| Q             | A| ------------- | ---| Branch?       | 3.3| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -While moving an app to 3.3, I noticed that my deprecation log is full of deprecation notices that differ only by some line number, but don't tell which file is concerned.This makes the line number useless, and just prevents aggregation.![capture du 2017-06-08 16-29-31](https://user-images.githubusercontent.com/243674/26933795-dd123476-4c67-11e7-8cf3-406bedab9130.png)Commits-------f82b618 [Yaml] Remove line number in deprecation notices
@rvanlaak
Copy link
Contributor

Although I 👍 with the MR, I think the line numbers would be really helpful. Maybe in a more verboseSYMFONY_DEPRECATIONS_HELPER mode? That would require discussion,@nicolas-grekas let me know if you think we should create a separate issue for that?

@nicolas-grekasnicolas-grekas deleted the yaml-aggreg branchJune 12, 2017 10:07
@stof
Copy link
Member

@rvanlaakSYMFONY_DEPRECATIONS_HELPER does not control the messages triggered in the code itself. It only configures the report in the PHPUnit bridge (and has no effect on the reporting in the profiler and logger btw)

@nicolas-grekas
Copy link
MemberAuthor

An without the file, line numbers are useless...

@fabpotfabpot mentioned this pull requestJul 4, 2017
nicolas-grekas added a commit that referenced this pull requestSep 29, 2017
…ecation (xabbuh)This PR was merged into the 3.3 branch.Discussion----------[DependencyInjection] include file and line number in deprecation| Q             | A| ------------- | ---| Branch?       | 3.3| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |In#23108 we removed line numbers from deprecation messages created by the YAML parser because those numbers were quite useless without the file being parsed. I suggest to revert this change and add the file being parsed to the deprecation message.Commits-------cf03552 include file and line number in deprecation
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof left review comments

Assignees

No one assigned

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

5 participants

@nicolas-grekas@stof@fabpot@rvanlaak@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp