Skip to content

Commit bbd950d

Browse files
authored
Fix phpstan build (#4229)
1 parent 71d3f32 commit bbd950d

2 files changed

Lines changed: 1 addition & 20 deletions

File tree

src/Command/BlackjackCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function execute(Input $input, Output $output): int
9999
if ($bet > $money) {
100100
goto start;
101101
}
102-
} elseif ($hasWatch) { // @phpstan-ignore-line
102+
} elseif ($hasWatch) {
103103
$answer = $io->askQuestion(new ChoiceQuestion('?', ['leave', '- Here, take my watch! [$25]'], 0));
104104
if ($answer == 'leave') {
105105
goto leave;

tests/phpstan-baseline.neon

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,2 @@
11
parameters:
22
ignoreErrors:
3-
-
4-
message: "#^Comparison operation \"\\>\" between 100|125|200|100000 and 0 is always true\\.$#"
5-
count: 1
6-
path: ../src/Command/BlackjackCommand.php
7-
8-
-
9-
message: "#^If condition is always false\\.$#"
10-
count: 1
11-
path: ../src/Command/BlackjackCommand.php
12-
13-
-
14-
message: "#^Comparison operation \"\\>\" between 0 and 0 is always false\\.$#"
15-
count: 1
16-
path: ../src/Command/BlackjackCommand.php
17-
18-
-
19-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
20-
count: 1
21-
path: ../src/Import/YamlRecipe.php

0 commit comments

Comments
 (0)