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

Always show all deprecations except legacy ones when not weak#25997

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

Conversation

@greg0ire
Copy link
Contributor

@greg0iregreg0ire commentedJan 31, 2018
edited
Loading

When using any mode but the weak mode, you want your build to fail on some or
all deprecations, but it is still nice to be able to see what you could
fix without having to change modes.

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
LicenseMIT

@greg0iregreg0ireforce-pushed thealways_display_deprecation_except_legacy branch fromc16a35a toabc2e37CompareJanuary 31, 2018 19:27
@greg0iregreg0ire changed the titleAlways show all deprecations except legacy oneAlways show all deprecations except legacy onesJan 31, 2018
@greg0iregreg0ireforce-pushed thealways_display_deprecation_except_legacy branch fromabc2e37 toe5928c2CompareJanuary 31, 2018 19:41
@greg0iregreg0ire changed the titleAlways show all deprecations except legacy onesAlways show all deprecations except legacy ones when not weakJan 31, 2018

exit(1);
}
if ('legacy' !==$group &&!$isWeak) {

Choose a reason for hiding this comment

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

the $isWeak variable is not used anymore, isn't it ?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

That's right, good riddance!

Choose a reason for hiding this comment

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

but now $isVendor is always false and $inVendors is never called :)

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I spotted and pushed again yeah :P should have checked the tests before pushing 😅

@greg0iregreg0ireforce-pushed thealways_display_deprecation_except_legacy branch 2 times, most recently from993980b to4af68d9CompareJanuary 31, 2018 19:52
@nicolas-grekasnicolas-grekas added this to the4.1 milestoneJan 31, 2018
$group ='other';
$isVendor =false;
$isWeak = DeprecationErrorHandler::MODE_WEAK ===$mode || (DeprecationErrorHandler::MODE_WEAK_VENDORS ===$mode &&$isVendor =$inVendors($file));
$isVendor =$inVendors($file);

Choose a reason for hiding this comment

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

$isVendor = DeprecationErrorHandler::MODE_WEAK_VENDORS === $mode && ... (same below, so that we don't compute $isVendor when not needed, isn't it?)

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Yeah plus I have 2$isVendor assignments now 😅

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

The condition on line 147 can go

@greg0iregreg0ireforce-pushed thealways_display_deprecation_except_legacy branch from4af68d9 tod7b0236CompareJanuary 31, 2018 20:11
-----

* all deprecations but those from tests marked with`@group legacy` are always
displayed, regardless of the mode.

Choose a reason for hiding this comment

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

needs an update :)

greg0ire reacted with thumbs up emoji
When using any mode but the weak mode, you want your build to fail onsome or all deprecations, but it is still nice to be able to see whatyou could fix without having to change modes.
@greg0iregreg0ireforce-pushed thealways_display_deprecation_except_legacy branch fromd7b0236 to9e37873CompareJanuary 31, 2018 20:33
@fabpot
Copy link
Member

Thank you@greg0ire.

@fabpotfabpot merged commit9e37873 intosymfony:masterFeb 7, 2018
fabpot added a commit that referenced this pull requestFeb 7, 2018
…ot weak (greg0ire)This PR was merged into the 4.1-dev branch.Discussion----------Always show all deprecations except legacy ones when not weakWhen using any mode but the weak mode, you want your build to fail on some orall deprecations, but it is still nice to be able to see what you couldfix without having to change modes.| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| License       | MIT<!--- 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.- Replace this comment by a description of what your PR is solving.-->Commits-------9e37873 Always show all deprecations except legacy ones
@greg0iregreg0ire deleted the always_display_deprecation_except_legacy branchFebruary 7, 2018 07:17
nicolas-grekas added a commit that referenced this pull requestFeb 11, 2018
* 3.4:  [Bridge/PhpUnit] Fix tests by backporting#25997 to 3.4
nicolas-grekas added a commit that referenced this pull requestFeb 11, 2018
* 4.0:  [Bridge/PhpUnit] Fix tests by backporting#25997 to 3.4
@nicolas-grekas
Copy link
Member

nicolas-grekas commentedFeb 11, 2018
edited
Loading

FYI, this PR has been backported to 3.4 in9a9c0f6. There is now way to make tests pass otherwise, since this changes the behavior.

@fabpotfabpot mentioned this pull requestMay 7, 2018
greg0ire added a commit to greg0ire/symfony that referenced this pull requestJul 23, 2018
greg0ire added a commit to greg0ire/symfony that referenced this pull requestJul 23, 2018
greg0ire added a commit to greg0ire/symfony that referenced this pull requestJul 23, 2018
greg0ire added a commit to greg0ire/symfony that referenced this pull requestJul 23, 2018
nicolas-grekas added a commit that referenced this pull requestJul 25, 2018
This PR was squashed before being merged into the 4.1 branch (closes#28046).Discussion----------[PhpUnitBridge] Describe weak_vendors properly| Q             | A| ------------- | ---| Branch?       | 4.1| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | n/a| License       | MIT| Doc PR        | n/aThe `weak_vendors` mode now displays deprecations, this behavior has changed since#25997Commits-------336008c [PhpUnitBridge] Describe weak_vendors properly
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.1

Development

Successfully merging this pull request may close these issues.

4 participants

@greg0ire@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp