From c65890d2d3364c62236651bb277987e00835b608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Mirtes?= Date: Wed, 7 Jul 2021 21:52:53 +0200 Subject: [PATCH] DiagnoseCommand - fix PHPDoc (#9991) --- phpstan/baseline.neon | 5 ----- src/Composer/Command/DiagnoseCommand.php | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/phpstan/baseline.neon b/phpstan/baseline.neon index 573d7554a..e747a8e40 100644 --- a/phpstan/baseline.neon +++ b/phpstan/baseline.neon @@ -25,11 +25,6 @@ parameters: count: 1 path: ../src/Composer/Command/BaseCommand.php - - - message: "#^Call to function is_array\\(\\) with string will always evaluate to false\\.$#" - count: 1 - path: ../src/Composer/Command/DiagnoseCommand.php - - message: "#^Result of && is always false\\.$#" count: 1 diff --git a/src/Composer/Command/DiagnoseCommand.php b/src/Composer/Command/DiagnoseCommand.php index f36ee3343..a288109c7 100644 --- a/src/Composer/Command/DiagnoseCommand.php +++ b/src/Composer/Command/DiagnoseCommand.php @@ -413,7 +413,7 @@ EOT } /** - * @param bool|string|\Exception $result + * @param bool|string|string[]|\Exception $result */ private function outputResult($result) {