Skip to content

Commit 63eed47

Browse files
committed
Updated Rector to commit 0e18562ee6196eb3196169dd51a6dffac479ec60
rectorphp/rector-src@0e18562 add FunctionFirstClassCallableRector to PHP 8.1 set
1 parent fa07432 commit 63eed47

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

config/set/php81.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
namespace RectorPrefix202510;
55

66
use Rector\CodingStyle\Rector\FuncCall\ClosureFromCallableToFirstClassCallableRector;
7+
use Rector\CodingStyle\Rector\FuncCall\FunctionFirstClassCallableRector;
78
use Rector\CodingStyle\Rector\FunctionLike\FunctionLikeToFirstClassCallableRector;
89
use Rector\Config\RectorConfig;
910
use Rector\Php81\Rector\Array_\FirstClassCallableRector;
@@ -34,6 +35,7 @@
3435
// closure/arrow function
3536
FunctionLikeToFirstClassCallableRector::class,
3637
ClosureFromCallableToFirstClassCallableRector::class,
38+
FunctionFirstClassCallableRector::class,
3739
RemoveReflectionSetAccessibleCallsRector::class,
3840
NewInInitializerRector::class,
3941
]);

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 = '153fc786d301d3d9e4170b955df9bbac9ecf144d';
22+
public const PACKAGE_VERSION = '0e18562ee6196eb3196169dd51a6dffac479ec60';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2025-10-23 00:53:10';
27+
public const RELEASE_DATE = '2025-10-23 01:04:21';
2828
/**
2929
* @var int
3030
*/

src/PhpParser/Printer/BetterStandardPrinter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ private function wrapAssign(Node $leftNode, Node $rightNode): void
377377
private function cleanStartIndentationOnHeredocNowDoc(string $content): string
378378
{
379379
$lines = NewLineSplitter::split($content);
380-
$trimmedLines = array_map('ltrim', $lines);
380+
$trimmedLines = array_map(\Closure::fromCallable('ltrim'), $lines);
381381
return implode("\n", $trimmedLines);
382382
}
383383
private function resolveIndentSpaces(): string

0 commit comments

Comments
 (0)