From e92803ac87c5cf4518083705fccb4bf03652fffe Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Wed, 3 Jun 2026 10:25:37 +0200 Subject: [PATCH] Fix phpstan build --- src/Command/BlackjackCommand.php | 2 +- tests/phpstan-baseline.neon | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/src/Command/BlackjackCommand.php b/src/Command/BlackjackCommand.php index a7ea5979c..0c1a56717 100644 --- a/src/Command/BlackjackCommand.php +++ b/src/Command/BlackjackCommand.php @@ -99,7 +99,7 @@ protected function execute(Input $input, Output $output): int if ($bet > $money) { goto start; } - } elseif ($hasWatch) { // @phpstan-ignore-line + } elseif ($hasWatch) { $answer = $io->askQuestion(new ChoiceQuestion('?', ['leave', '- Here, take my watch! [$25]'], 0)); if ($answer == 'leave') { goto leave; diff --git a/tests/phpstan-baseline.neon b/tests/phpstan-baseline.neon index a014785c0..364905f71 100644 --- a/tests/phpstan-baseline.neon +++ b/tests/phpstan-baseline.neon @@ -1,21 +1,2 @@ parameters: ignoreErrors: - - - message: "#^Comparison operation \"\\>\" between 100|125|200|100000 and 0 is always true\\.$#" - count: 1 - path: ../src/Command/BlackjackCommand.php - - - - message: "#^If condition is always false\\.$#" - count: 1 - path: ../src/Command/BlackjackCommand.php - - - - message: "#^Comparison operation \"\\>\" between 0 and 0 is always false\\.$#" - count: 1 - path: ../src/Command/BlackjackCommand.php - - - - message: "#^Unreachable statement \\- code above always terminates\\.$#" - count: 1 - path: ../src/Import/YamlRecipe.php