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
2.18.4 regression: anonymous class properties being inlined with anonymous class declarations #5575
Comments
2.18.3:
2.18.4:
I want to keep brace on the same line as 2.18.3. How do I set them? |
@huye why did you post your message here? This issue is about anonymous classes where open brace is not a problem. |
@Ocramius in Take a look at #5593 - is that making sense or should it be change the other way - that |
Totally missed to provide feedback on this, @kubawerlos @keradus! I'll see if I can test this on a new release, but I'm really unable to provide active help on understanding the underlying cause of the original issue due to lack of knowledge of the codebase :S |
Seems like this is still reproducible in 2.18.6: --- Original
+++ New
@@ -229,8 +229,7 @@
$url = $this->createProvider(
new DummyPayoneGateway(null, function () {
- throw new class() extends PaymentException {
- protected $message = 'my error';
+ throw new class() extends PaymentException { protected $message = 'my error';
};
})
)->buildPaymentRedirectUrl($order);
----------- end diff ----------- Should I open a new issue about this one? 🤔 |
The fix prepared by @kubawerlos - #5593 - was merged into 2.18.7, according to the milestone. GitHub clsoes the ticket automatically when PR is merged. |
While upgrading from
2.18.3
to2.18.4
:Overall, that
protected $message
should stay on a new line, I suppose?.php_cs.dist
:The text was updated successfully, but these errors were encountered: