From 96fcbe3da5a783f467eac8d76b4f87b5256e0368 Mon Sep 17 00:00:00 2001 From: Laurent Laville Date: Tue, 6 Feb 2024 08:24:54 +0000 Subject: [PATCH] fix issue #204 --- .changes/unreleased/Fixed-20240206-082414.yaml | 4 ++++ bin/phplint | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/Fixed-20240206-082414.yaml diff --git a/.changes/unreleased/Fixed-20240206-082414.yaml b/.changes/unreleased/Fixed-20240206-082414.yaml new file mode 100644 index 00000000..58d70832 --- /dev/null +++ b/.changes/unreleased/Fixed-20240206-082414.yaml @@ -0,0 +1,4 @@ +kind: Fixed +body: '[#204](https://github.com/overtrue/phplint/issues/204) : PHPLint 9.1.1 is unable + to interpret correctly command arguments/options' +time: 2024-02-06T08:24:14.292622556Z diff --git a/bin/phplint b/bin/phplint index b17c66a7..5e669103 100755 --- a/bin/phplint +++ b/bin/phplint @@ -25,9 +25,9 @@ if (true === $input->hasParameterOption(['--no-progress'], true)) { $progress = $input->getParameterOption('--progress', 'printer'); $extensions = match($progress) { - 'meter' => [new ProgressPrinter()], 'bar' => [new ProgressBar()], 'indicator' => [new ProgressIndicator()], + default => [new ProgressPrinter()], }; }