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

Use triggering file to determine weak vendors if when the test is run in a separate process#25685

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

Closed

Conversation

@alexpott
Copy link
Contributor

@alexpottalexpott commentedJan 4, 2018
edited by nicolas-grekas
Loading

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?I think so
Fixed tickets#25684
LicenseMIT
Doc PRsymfony/symfony-docs#...

@nicolas-grekasnicolas-grekas changed the titleUse triggering file to determine weak vendors if when the test is run…Use triggering file to determine weak vendors if when the test is run in a separate processJan 4, 2018
@nicolas-grekasnicolas-grekas changed the base branch frommaster to3.4January 4, 2018 16:22
@nicolas-grekasnicolas-grekas added this to the3.4 milestoneJan 4, 2018
@nicolas-grekas
Copy link
Member

can you rebase on 3.4 please ?

@alexpottalexpottforce-pushed theweak_vendors_process_isolation branch from4f05ef4 to14925cbCompareJanuary 4, 2018 16:26
@alexpott
Copy link
ContributorAuthor

Rebased on 3.4. I can't work out how to write a test for this because atm all the weak vendor stuff is tested via phpt tests and a fake vendor.

$msg =$parsedMsg['deprecation'];
$class =$parsedMsg['class'];
$method =$parsedMsg['method'];
$isWeak = DeprecationErrorHandler::MODE_WEAK ===$mode || (DeprecationErrorHandler::MODE_WEAK_VENDORS ===$mode &&$isVendor =$inVendors($parsedMsg['triggering_file']));

Choose a reason for hiding this comment

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

shouldn't $isVendor be initialized to false before this line?

Choose a reason for hiding this comment

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

then L124:$isWeak = $isWeak || ...?

Copy link
Member

@nicolas-grekasnicolas-grekasJan 4, 2018
edited
Loading

Choose a reason for hiding this comment

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

self answering :)

shouldn't $isVendor be initialized to false before this line?

not needed as logically this wouldn't make a difference, but might still help the reader

then L124: $isWeak = $isWeak || ...?

really not sure about that (might instead break the fix, you'll tell :) )

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Yeah that'd break the fix. The point is $isWeak is wrong at this point. Can always add a comment.

@nicolas-grekas
Copy link
Member

Thank you@alexpott.

This was referencedJan 5, 2018
@greg0ire
Copy link
Contributor

Oh wow you fixed it, thanks! Could have pinged me though :P

// then we need to use the serialized information to
// determine if the error has been triggered from vendor
// code.
$isWeak = DeprecationErrorHandler::MODE_WEAK ===$mode || (DeprecationErrorHandler::MODE_WEAK_VENDORS ===$mode &&$isVendor =$inVendors($parsedMsg['triggering_file']));
Copy link
Contributor

Choose a reason for hiding this comment

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

Very elegant solution 👍

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

+1 more reviewer

@greg0iregreg0iregreg0ire left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

4 participants

@alexpott@nicolas-grekas@greg0ire@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp