From 8777fd4ea1e8e1171a94039935799bfcad8ac970 Mon Sep 17 00:00:00 2001 From: Flavio Heleno Date: Thu, 15 Feb 2024 18:45:00 -0300 Subject: [PATCH] Fix check:http-resp status code validation --- src/Console/Commands/Check/CheckHttpResponseCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/Commands/Check/CheckHttpResponseCommand.php b/src/Console/Commands/Check/CheckHttpResponseCommand.php index 4bc2f59..41be613 100644 --- a/src/Console/Commands/Check/CheckHttpResponseCommand.php +++ b/src/Console/Commands/Check/CheckHttpResponseCommand.php @@ -99,7 +99,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $authPath = (string)$input->getOption('auth-path'); if ($authPath !== '' && is_readable($authPath)) {} - $statusCodes = (array)$input->getOption('status-code'); + $statusCodes = array_map('intval', (array)$input->getOption('status-code')); $matchKeywords = (array)$input->getOption('match-keyword'); $notMatchKeywords = (array)$input->getOption('not-match-keyword');