File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 4848
4949 - name : " Prepare for PHAR compilation"
5050 working-directory : " compiler"
51- run : " php bin/compile "
51+ run : " php bin/prepare "
5252
5353 - name : " Compile PHAR"
5454 working-directory : " compiler/build"
Original file line number Diff line number Diff line change 11#!/usr/bin/env php
22<?php declare (strict_types = 1 );
33
4- use PHPStan \Compiler \Console \CompileCommand ;
4+ use PHPStan \Compiler \Console \PrepareCommand ;
55use PHPStan \Compiler \Filesystem \SymfonyFilesystem ;
66use Symfony \Component \Console \Application ;
77
88require_once __DIR__ . '/../vendor/autoload.php ' ;
99
10- $ compileCommand = new CompileCommand (
10+ $ prepareCommand = new PrepareCommand (
1111 new SymfonyFilesystem (new \Symfony \Component \Filesystem \Filesystem ()),
1212 realpath (__DIR__ . '/../.. ' )
1313);
1414
1515$ application = new Application ();
16- $ application ->add ($ compileCommand );
17- $ application ->setDefaultCommand ($ compileCommand ->getName (), true );
16+ $ application ->add ($ prepareCommand );
17+ $ application ->setDefaultCommand ($ prepareCommand ->getName (), true );
1818$ application ->run ();
Original file line number Diff line number Diff line change 3030use const JSON_PRETTY_PRINT ;
3131use const JSON_UNESCAPED_SLASHES ;
3232
33- final class CompileCommand extends Command
33+ final class PrepareCommand extends Command
3434{
3535
3636 public function __construct (
@@ -43,8 +43,8 @@ public function __construct(
4343
4444 protected function configure (): void
4545 {
46- $ this ->setName ('phpstan:compile ' )
47- ->setDescription ('Compile PHAR ' );
46+ $ this ->setName ('prepare ' )
47+ ->setDescription ('Prepare PHAR ' );
4848 }
4949
5050 protected function execute (InputInterface $ input , OutputInterface $ output ): int
You can’t perform that action at this time.
0 commit comments