Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[PHPUnitBridge] Static access in closure#29724
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
greg0ire commentedDec 29, 2018
Doing many commits for now, in case some of them cannot be merged. Will squash if everything is all good. |
8df51b1 toe90bfefComparegreg0ire commentedDec 30, 2018
Prepended the commit list with one cs-fix commit (self accessor), apparently the code wasn't even valid before any changes. Got rid of the fabbot commit by dispatching changes to the right commits. |
e90bfef to5345897Comparegreg0ire commentedDec 30, 2018
The Travis failure seems unrelated. |
5345897 to2584634CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
17417bb tob7100b3Comparegreg0ire commentedJan 3, 2019
The build failures are unrelated, please review again@nicolas-grekas |
1a12b1c to79921b3Comparenicolas-grekas commentedJan 25, 2019
rebase needed please, but before, I'd recommend you to squash+apply move to short arrays. |
79921b3 to7bee301Compare| } | ||
| $UtilPrefix =class_exists('PHPUnit_Util_ErrorHandler') ?'PHPUnit_Util_' :'PHPUnit\Util\\'; | ||
| self::computeMode($mode); |
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.
Computing the mode should be kept lazy: it allows registering the bridge and configure the mode a bit later before any deprecation is thrown. That's an important behavior we should keep.
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.
Ok, I introduced a new$rawMode static to keep the value until it is necessary to compute the actual mode.
7bee301 to9df76ebComparenicolas-grekas commentedJan 27, 2019
I pushed a 2nd commit here, that uses an internal instance instead of static properties to track the state. |
29f3e54 to97f3023Comparenicolas-grekas commentedJan 27, 2019
Thank you@greg0ire. |
…las-grekas)This PR was merged into the 4.3-dev branch.Discussion----------[PHPUnitBridge] Static access in closure| Q | A| ------------- | ---| Branch? | master for features| Bug fix? | no| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets | n / a| License | MIT| Doc PR | n / a#29718 bumps php to 5.5 . This is what we could simplify if it gets merged, thanks to this "new" PHP feature:https://3v4l.org/sJOWrEDIT: it was merged, this can be reviewed.Commits-------97f3023 Use the scope of an instance9df76eb Extract closures into static functions
Uh oh!
There was an error while loading.Please reload this page.
#29718 bumps php to 5.5 . This is what we could simplify if it gets merged, thanks to this "new" PHP feature:https://3v4l.org/sJOWr
EDIT: it was merged, this can be reviewed.