Skip to content

Commit d913384

Browse files
[Console] Allow short command "p" on ProcessCommand (#7931)
* [Console] Allow short command "p" on ConsoleApplication * Fix * Fix latest phpstan assert * [ci-review] Rector Rectify * with setAliases() --------- Co-authored-by: GitHub Action <actions@github.com>
1 parent 4a6cb19 commit d913384

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/e2e_command_with_option.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ jobs:
5050
php ../../bin/rector process some_file.php --output-format json
5151
php ../../bin/rector process some_file.php --output-format=json
5252
53+
php ../../bin/rector p some_file.php --output-format=json
54+
5355
# with implicit process command
5456
../../bin/rector --output-format json --dry-run
5557
../../bin/rector --output-format=json --dry-run

src/Console/Command/ProcessCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public function __construct(
5454
protected function configure(): void
5555
{
5656
$this->setName('process');
57+
$this->setAliases(['p']);
5758
$this->setDescription('Upgrades or refactors source code with provided Rector rules');
5859
$this->setHelp(
5960
<<<'EOF'

0 commit comments

Comments
 (0)