Skip to content

Commit 3a8fcaf

Browse files
committed
Updated Rector to commit b5e2b4989aca8f19bb3b2e389f1019c7e6df7408
rectorphp/rector-src@b5e2b49 [Printer] Remove unnecessary BetterStandardPrinter::pParam() override method (#6947)
1 parent 38efe1f commit 3a8fcaf

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = '66a7ba822168a5ad195ceddd511f9400e55a91b8';
22+
public const PACKAGE_VERSION = 'b5e2b4989aca8f19bb3b2e389f1019c7e6df7408';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2025-06-01 01:30:40';
27+
public const RELEASE_DATE = '2025-06-01 08:41:07';
2828
/**
2929
* @var int
3030
*/

src/PhpParser/Printer/BetterStandardPrinter.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
use PhpParser\Node\Expr\Ternary;
2222
use PhpParser\Node\Expr\Yield_;
2323
use PhpParser\Node\InterpolatedStringPart;
24-
use PhpParser\Node\Param;
2524
use PhpParser\Node\Scalar\Float_;
2625
use PhpParser\Node\Scalar\Int_;
2726
use PhpParser\Node\Scalar\InterpolatedString;
@@ -328,13 +327,6 @@ protected function pExpr_MethodCall(MethodCall $methodCall) : string
328327
}
329328
return $this->pDereferenceLhs($methodCall->var) . "\n" . $this->resolveIndentSpaces() . '->' . $this->pObjectProperty($methodCall->name) . '(' . $this->pMaybeMultiline($methodCall->args) . ')';
330329
}
331-
/**
332-
* Keep attributes on newlines
333-
*/
334-
protected function pParam(Param $param) : string
335-
{
336-
return $this->pAttrGroups($param->attrGroups) . $this->pModifiers($param->flags) . ($param->type instanceof Node ? $this->p($param->type) . ' ' : '') . ($param->byRef ? '&' : '') . ($param->variadic ? '...' : '') . $this->p($param->var) . ($param->default instanceof Expr ? ' = ' . $this->p($param->default) : '') . ($param->hooks !== [] ? ' {' . $this->pStmts($param->hooks) . $this->nl . '}' : '');
337-
}
338330
protected function pInfixOp(string $class, Node $leftNode, string $operatorString, Node $rightNode, int $precedence, int $lhsPrecedence) : string
339331
{
340332
$this->wrapAssign($leftNode, $rightNode);

0 commit comments

Comments
 (0)