Skip to content

Commit

Permalink
Updated Rector to commit 7f2155d5c0058a002790c05cae54b49405e154ac
Browse files Browse the repository at this point in the history
rectorphp/rector-src@7f2155d [DX] add RectorConfig::command() to ease external command registration (#5443)
  • Loading branch information
TomasVotruba committed Jan 7, 2024
1 parent 33f8d9f commit 2a79360
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '3751c94d26dc1bd8a7a1699f64d0c983dfd11a9f';
public const PACKAGE_VERSION = '7f2155d5c0058a002790c05cae54b49405e154ac';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-01-07 13:04:44';
public const RELEASE_DATE = '2024-01-07 12:12:27';
/**
* @var int
*/
Expand Down
8 changes: 8 additions & 0 deletions src/Config/RectorConfig.php
Expand Up @@ -183,6 +183,14 @@ public function collector(string $collectorClass) : void
$this->singleton($collectorClass);
$this->tag($collectorClass, Collector::class);
}
/**
* @param class-string<Command> $commandClass
*/
public function command(string $commandClass) : void
{
$this->singleton($commandClass);
$this->tag($commandClass, Command::class);
}
public function import(string $filePath) : void
{
if (\strpos($filePath, '*') !== \false) {
Expand Down

0 comments on commit 2a79360

Please sign in to comment.