Skip to content

Commit

Permalink
Merge branch '62-test-commands-output' of github.com:hans-thomas/valr…
Browse files Browse the repository at this point in the history
…avn into 62-test-commands-output
  • Loading branch information
hans-thomas committed Jan 20, 2025
2 parents b487d51 + 52b1e15 commit be6e7cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Commands/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ class Exception extends Command
/**
* Execute the console command.
*
* @return int
* @throws Throwable
* @throws FilesystemException
*
* @return int
*/
public function handle(): int
{
Expand All @@ -50,7 +51,7 @@ public function handle(): int
$closure = function (ProgressBar $progress) use ($service, $compactName) {
$this->newLine();
if ($compactName === '' || filled($compactName) || $this->confirm('Should create a compact exception?')) {
$compactName = $compactName ? : $this->ask('What should be its name?');
$compactName = $compactName ?: $this->ask('What should be its name?');
if (blank($compactName)) {
if (version_compare(app()->version(), '11', '>=')) {
$this->fail('The name of the compact exception can not be empty.');

Check failure on line 57 in src/Commands/Exception.php

View workflow job for this annotation

GitHub Actions / PHPSTAN: PHP 8.1 - Laravel 10.*

Call to an undefined method Hans\Valravn\Commands\Exception::fail().

Check failure on line 57 in src/Commands/Exception.php

View workflow job for this annotation

GitHub Actions / PHPSTAN: PHP 8.2 - Laravel 10.*

Call to an undefined method Hans\Valravn\Commands\Exception::fail().

Check failure on line 57 in src/Commands/Exception.php

View workflow job for this annotation

GitHub Actions / PHPSTAN: PHP 8.3 - Laravel 10.*

Call to an undefined method Hans\Valravn\Commands\Exception::fail().

Check failure on line 57 in src/Commands/Exception.php

View workflow job for this annotation

GitHub Actions / PHPSTAN: PHP 8.4 - Laravel 10.*

Call to an undefined method Hans\Valravn\Commands\Exception::fail().

Check failure on line 57 in src/Commands/Exception.php

View workflow job for this annotation

GitHub Actions / PHPSTAN: PHP 8.1 - Laravel 10.*

Call to an undefined method Hans\Valravn\Commands\Exception::fail().

Check failure on line 57 in src/Commands/Exception.php

View workflow job for this annotation

GitHub Actions / PHPSTAN: PHP 8.2 - Laravel 10.*

Call to an undefined method Hans\Valravn\Commands\Exception::fail().

Check failure on line 57 in src/Commands/Exception.php

View workflow job for this annotation

GitHub Actions / PHPSTAN: PHP 8.3 - Laravel 10.*

Call to an undefined method Hans\Valravn\Commands\Exception::fail().

Check failure on line 57 in src/Commands/Exception.php

View workflow job for this annotation

GitHub Actions / PHPSTAN: PHP 8.4 - Laravel 10.*

Call to an undefined method Hans\Valravn\Commands\Exception::fail().
Expand Down

0 comments on commit be6e7cd

Please sign in to comment.