We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 659a165 commit bc07f76Copy full SHA for bc07f76
1 file changed
src/PhpParser/Printer/BetterStandardPrinter.php
@@ -375,7 +375,10 @@ protected function pExpr_MethodCall(MethodCall $methodCall): string
375
return parent::pExpr_MethodCall($methodCall);
376
}
377
378
- if (SimpleParameterProvider::provideBoolParameter(Option::NEW_LINE_ON_FLUENT_CALL) === false) {
+ $globalFlag = SimpleParameterProvider::provideBoolParameter(Option::NEW_LINE_ON_FLUENT_CALL);
379
+ $perNodeFlag = (bool) $methodCall->getAttribute(AttributeKey::NEWLINE_ON_FLUENT_CALL, false);
380
+
381
+ if ($globalFlag === false && $perNodeFlag === false) {
382
383
384
0 commit comments