-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[PhpUnitBridge] More accurate grouping #31730
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
8193095
to
38f3621
Compare
Hi there, it seems better to me :) FYI using Symfony 4.3.0-beta1 (without the Twig fixes in Pre-patch:
Post-patch:
|
a2a7612
to
0febb03
Compare
116907f
to
d67f50c
Compare
@@ -18,6 +18,15 @@ | |||
*/ | |||
class Deprecation | |||
{ | |||
private const PATH_TYPE_VENDOR = 'path_type_vendor'; | |||
private const PATH_TYPE_SELF = 'path_type_internal'; | |||
private const PATH_TYPE_UNDETERMINED = 'path_type_undetermined'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could have used an exception instead of 3-value return, but it did not feel "exceptional" enough. This is going to happen whenever a deprecation comes from the cache.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hello PHP 5.5, we cannot use these consts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in 0c9b3c0
d67f50c
to
d9f0ba3
Compare
Thank you @greg0ire. |
This PR was squashed before being merged into the 4.3 branch (closes #31730). Discussion ---------- [PhpUnitBridge] More accurate grouping | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Sometimes, you cannot easily know if code was written by a vendor or directly in the application, for instance if the code comes from a file in the cache. In that case, it is better not to classify the deprecation as direct or indirect. @jmsche please test this on your application when you can, I think you might be having that issue. Commits ------- d9f0ba3 [PhpUnitBridge] More accurate grouping
This breaks the CI and I cannot reproduce locally (yet), for deps=low/high jobs: Not a bug, just a side-effect of the CI. |
Reverted in 4814fd3 |
* 4.3: Revert "bug #31730 [PhpUnitBridge] More accurate grouping (greg0ire)"
* 4.4: Revert "bug #31730 [PhpUnitBridge] More accurate grouping (greg0ire)"
…eg0ire)"" This reverts commit 4814fd3.
* 4.3: Reject phpunit-bridge v5 for now Revert "Revert "bug #31730 [PhpUnitBridge] More accurate grouping (greg0ire)""
* 4.4: Reject phpunit-bridge v5 for now Revert "Revert "bug #31730 [PhpUnitBridge] More accurate grouping (greg0ire)""
Revert reverted because actually it's not the issue, I'm loosing my mind on because I cannot reproduce locally :) |
Sometimes, you cannot easily know if code was written by a vendor or
directly in the application, for instance if the code comes from a file
in the cache. In that case, it is better not to classify the deprecation
as direct or indirect.
@jmsche please test this on your application when you can, I think you might be having that issue.