Skip to content

Commit 2a79360

Browse files
committed
Updated Rector to commit 7f2155d5c0058a002790c05cae54b49405e154ac
rectorphp/rector-src@7f2155d [DX] add RectorConfig::command() to ease external command registration (#5443)
1 parent 33f8d9f commit 2a79360

2 files changed

Lines changed: 10 additions & 2 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 = '3751c94d26dc1bd8a7a1699f64d0c983dfd11a9f';
22+
public const PACKAGE_VERSION = '7f2155d5c0058a002790c05cae54b49405e154ac';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2024-01-07 13:04:44';
27+
public const RELEASE_DATE = '2024-01-07 12:12:27';
2828
/**
2929
* @var int
3030
*/

src/Config/RectorConfig.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,14 @@ public function collector(string $collectorClass) : void
183183
$this->singleton($collectorClass);
184184
$this->tag($collectorClass, Collector::class);
185185
}
186+
/**
187+
* @param class-string<Command> $commandClass
188+
*/
189+
public function command(string $commandClass) : void
190+
{
191+
$this->singleton($commandClass);
192+
$this->tag($commandClass, Command::class);
193+
}
186194
public function import(string $filePath) : void
187195
{
188196
if (\strpos($filePath, '*') !== \false) {

0 commit comments

Comments
 (0)