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

Don't resolve the Deprecation error handler mode until a deprecation is triggered#30247

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
nicolas-grekas merged 1 commit intosymfony:3.4fromossinkine:issue-30047
Feb 16, 2019

Conversation

@ossinkine
Copy link
Contributor

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#30047
LicenseMIT

If an error happens before.env.test is loaded the mode is set to 0 and cached so SYMFONY_DEPRECATIONS_HELPER is not read from.env.test.

@ossinkineossinkine changed the base branch frommaster to3.4February 14, 2019 16:13
@nicolas-grekasnicolas-grekas added this to the3.4 milestoneFeb 14, 2019
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

The issue has been introduced in#20334 btw
Pleasedo not fix the fabbot issues :)

$deprecationHandler =function ($type,$msg,$file,$line,$context =array())use (&$deprecations,$getMode,$UtilPrefix,$inVendors) {
$mode =$getMode();
if ((E_USER_DEPRECATED !==$type &&E_DEPRECATED !==$type) || DeprecationErrorHandler::MODE_DISABLED ===$mode) {
if ((E_USER_DEPRECATED !==$type &&E_DEPRECATED !==$type) || DeprecationErrorHandler::MODE_DISABLED === ($mode =$getMode())) {
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

($mode = $getMode()) or$mode = $getMode() as in original commit?

@nicolas-grekas
Copy link
Member

Thank you@ossinkine.

@nicolas-grekasnicolas-grekas merged commit1090b8c intosymfony:3.4Feb 16, 2019
nicolas-grekas added a commit that referenced this pull requestFeb 16, 2019
…eprecation is triggered (ossinkine)This PR was merged into the 3.4 branch.Discussion----------Don't resolve the Deprecation error handler mode until a deprecation is triggered| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#30047| License       | MIT<!--Write a short README entry for your feature/bugfix here (replace this comment block.)This will help people understand your PR and can be used as a start of the Doc PR.Additionally: - Bug fixes must be submitted against the lowest branch where they apply   (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch.-->If an error happens before `.env.test` is loaded the mode is set to 0 and cached so SYMFONY_DEPRECATIONS_HELPER is not read from `.env.test`.Commits-------1090b8c Don't resolve the Deprecation error handler mode until a deprecation is triggered
This was referencedMar 3, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

3 participants

@ossinkine@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp