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

[PhpUnitBridge] Do not override correct triggering file for return type deprecations#43241

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

@wouterj
Copy link
Member

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

Return type deprecations were sometimes incorrectly marked as direct/indirect, even when they occur on a vendor package. This is due to their special message, which starts withMethod "classFromVendor::method()" might add "type" [...] do the same in "affectedClass" [...] (normal messages start with the affected class).

This means that the deprecation type checked whether the method causing the deprecation was inside the vendor directory, rather than the method affected by the deprecation. Even more, if the causing method was from PHP internals,$this->triggeringFile would becomefalse, causingrealpath(false) to return the current directory - meaning these were always marked as direct.

chalasr reacted with thumbs up emoji
@wouterj
Copy link
MemberAuthor

Btw, we can also once again reword the deprecation message to fit the standard set by all other deprecation messages. I'm all ears for suggestions :)

@fabpot
Copy link
Member

Isn't it something for 5.3?

chalasr reacted with thumbs up emoji

@fabpotfabpot modified the milestones:5.4,5.3Sep 29, 2021
@fabpot
Copy link
Member

Thank you@wouterj.

@fabpotfabpotforce-pushed thebugfix/indirect-return-type-deprecations branch from7f416d5 to9bcfddeCompareSeptember 29, 2021 16:22
@fabpotfabpot merged commitd121089 intosymfony:5.3Sep 29, 2021
@wouterjwouterj deleted the bugfix/indirect-return-type-deprecations branchSeptember 29, 2021 16:34
nicolas-grekas added a commit that referenced this pull requestSep 30, 2021
…r missing return types on 5.3 (chalasr)This PR was merged into the 5.3 branch.Discussion----------[PhpUnitBridge] Fix skipping triggering file override for missing return types on 5.3| Q             | A| ------------- | ---| Branch?       | 5.3| Bug fix?      | yes| New feature?  | no| Deprecations? | -| Tickets       | -| License       | MIT| Doc PR        | -#43241 was merged in 5.3 instead of 5.4, but the deprecation notice was reworded on 5.4:#42935.Commits-------c1034dc [PHPUnitBridge] Fix skipping triggering file override on 5.3
symfony-splitter pushed a commit to symfony/phpunit-bridge that referenced this pull requestSep 30, 2021
…r missing return types on 5.3 (chalasr)This PR was merged into the 5.3 branch.Discussion----------[PhpUnitBridge] Fix skipping triggering file override for missing return types on 5.3| Q             | A| ------------- | ---| Branch?       | 5.3| Bug fix?      | yes| New feature?  | no| Deprecations? | -| Tickets       | -| License       | MIT| Doc PR        | -symfony/symfony#43241 was merged in 5.3 instead of 5.4, but the deprecation notice was reworded on 5.4:symfony/symfony#42935.Commits-------c1034dc940 [PHPUnitBridge] Fix skipping triggering file override on 5.3
@fabpotfabpot mentioned this pull requestOct 29, 2021
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

@chalasrchalasrAwaiting requested review from chalasr

@dunglasdunglasAwaiting requested review from dunglas

@jderussejderusseAwaiting requested review from jderusse

@lyrixxlyrixxAwaiting requested review from lyrixx

@OskarStarkOskarStarkAwaiting requested review from OskarStark

@srozesrozeAwaiting requested review from sroze

@xabbuhxabbuhAwaiting requested review from xabbuh

@ycerutoycerutoAwaiting requested review from yceruto

Assignees

No one assigned

Projects

None yet

Milestone

5.3

Development

Successfully merging this pull request may close these issues.

4 participants

@wouterj@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp