Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Oct 13, 2024
1 parent 109bf7b commit 052189e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ parameters:
- "#AMQPMessage#"

excludePaths:
- src/Command/BlackjackCommand.php
- src/Component/PharUpdate/*
3 changes: 1 addition & 2 deletions src/Command/BlackjackCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

use function Deployer\Support\array_flatten;

// @phpstan-ignore
class BlackjackCommand extends Command
{
use CommandCommon;
Expand Down Expand Up @@ -100,7 +99,7 @@ protected function execute(Input $input, Output $output): int
if ($bet > $money) {
goto start;
}
} elseif ($hasWatch) {
} elseif ($hasWatch) { // @phpstan-ignore-line
$answer = $io->askQuestion(new ChoiceQuestion('?', ['leave', '- Here, take my watch! [$25]'], 0));
if ($answer == 'leave') {
goto leave;
Expand Down
10 changes: 0 additions & 10 deletions tests/phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ parameters:
count: 1
path: ../src/Command/BlackjackCommand.php

-
message: "#^If condition is always true\\.$#"
count: 1
path: ../src/Command/BlackjackCommand.php

-
message: "#^If condition is always false\\.$#"
count: 1
Expand All @@ -30,11 +25,6 @@ parameters:
count: 2
path: ../src/Component/PharUpdate/Exception/Exception.php

-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
count: 1
path: ../src/Component/PharUpdate/Manifest.php

-
message: "#^If condition is always true\\.$#"
count: 1
Expand Down

0 comments on commit 052189e

Please sign in to comment.