Skip to content

Commit

Permalink
Merge pull request #152 from jolicode/version
Browse files Browse the repository at this point in the history
Fix the `castor --version` command when there is no `.castor.php` file
  • Loading branch information
pyrech authored Jul 11, 2023
2 parents bd6d6d4 + 272a6d4 commit d2117cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

* Fix the `castor --version` command when there is no `.castor.php` file

## 0.7.0 (2023-07-11)

* Add support for re-packing a castor application into a new phar file
Expand Down
2 changes: 2 additions & 0 deletions src/Console/Command/CastorFileNotFoundCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Castor\Console\Command;

use Castor\Console\Application;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
Expand All @@ -16,6 +17,7 @@ public function __construct(
private readonly \RuntimeException $e,
) {
parent::__construct('castor');
$this->setVersion(Application::VERSION);
}

protected function configure(): void
Expand Down

0 comments on commit d2117cf

Please sign in to comment.