From a71985ce01953c596503f3f8537240d915c4fe5b Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 30 Mar 2022 16:25:38 +0200 Subject: [PATCH] Update baseline (2150, 103) --- phpstan/baseline-8.1.neon | 5 ----- phpstan/baseline.neon | 39 ++------------------------------------- 2 files changed, 2 insertions(+), 42 deletions(-) diff --git a/phpstan/baseline-8.1.neon b/phpstan/baseline-8.1.neon index f69bb635e..4d70346e0 100644 --- a/phpstan/baseline-8.1.neon +++ b/phpstan/baseline-8.1.neon @@ -70,11 +70,6 @@ parameters: count: 1 path: ../src/Composer/Config.php - - - message: "#^Parameter \\#1 \\$string of function rtrim expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Config.php - - message: "#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Composer\\\\Json\\\\JsonManipulator, string\\} given\\.$#" count: 1 diff --git a/phpstan/baseline.neon b/phpstan/baseline.neon index 2b8eea118..a530c9ddd 100644 --- a/phpstan/baseline.neon +++ b/phpstan/baseline.neon @@ -620,11 +620,6 @@ parameters: count: 1 path: ../src/Composer/Command/ExecCommand.php - - - message: "#^Parameter \\#2 \\$listener of method Composer\\\\EventDispatcher\\\\EventDispatcher\\:\\:addListener\\(\\) expects callable\\(\\)\\: mixed, string given\\.$#" - count: 1 - path: ../src/Composer/Command/ExecCommand.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" count: 1 @@ -1495,14 +1490,9 @@ parameters: count: 1 path: ../src/Composer/Config.php - - - message: "#^Parameter \\#1 \\$str of function rtrim expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Config.php - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 + count: 1 path: ../src/Composer/Config.php - @@ -2641,15 +2631,10 @@ parameters: path: ../src/Composer/EventDispatcher/EventDispatcher.php - - message: "#^Parameter \\#2 \\$listener of method Composer\\\\EventDispatcher\\\\EventDispatcher\\:\\:addListener\\(\\) expects callable\\(\\)\\: mixed, array\\{Composer\\\\EventDispatcher\\\\EventSubscriberInterface, string\\} given\\.$#" + message: "#^Parameter \\#2 \\$listener of method Composer\\\\EventDispatcher\\\\EventDispatcher\\:\\:addListener\\(\\) expects \\(callable\\(\\)\\: mixed\\)\\|string, array\\{Composer\\\\EventDispatcher\\\\EventSubscriberInterface, string\\} given\\.$#" count: 3 path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - message: "#^Parameter \\#2 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:isMatch\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#" count: 1 @@ -6441,31 +6426,11 @@ parameters: count: 1 path: ../tests/Composer/Test/Mock/InstallationManagerMock.php - - - message: "#^Offset 'callback' does not exist on array\\{cmd\\: array\\\\|string, return\\?\\: int, stdout\\?\\: string, stderr\\?\\: string, callback\\?\\: callable\\(\\)\\: mixed\\}\\.$#" - count: 1 - path: ../tests/Composer/Test/Mock/ProcessExecutorMock.php - - message: "#^Offset 'cmd' on array\\{cmd\\: array\\\\|string, return\\?\\: int, stdout\\?\\: string, stderr\\?\\: string, callback\\?\\: callable\\(\\)\\: mixed\\} on left side of \\?\\? always exists and is not nullable\\.$#" count: 1 path: ../tests/Composer/Test/Mock/ProcessExecutorMock.php - - - message: "#^Offset 'return' does not exist on array\\{cmd\\: array\\\\|string, return\\?\\: int, stdout\\?\\: string, stderr\\?\\: string, callback\\?\\: callable\\(\\)\\: mixed\\}\\.$#" - count: 1 - path: ../tests/Composer/Test/Mock/ProcessExecutorMock.php - - - - message: "#^Offset 'stderr' does not exist on array\\{cmd\\: array\\\\|string, return\\?\\: int, stdout\\?\\: string, stderr\\?\\: string, callback\\?\\: callable\\(\\)\\: mixed\\}\\.$#" - count: 1 - path: ../tests/Composer/Test/Mock/ProcessExecutorMock.php - - - - message: "#^Offset 'stdout' does not exist on array\\{cmd\\: array\\\\|string, return\\?\\: int, stdout\\?\\: string, stderr\\?\\: string, callback\\?\\: callable\\(\\)\\: mixed\\}\\.$#" - count: 1 - path: ../tests/Composer/Test/Mock/ProcessExecutorMock.php - - message: "#^Only booleans are allowed in an if condition, string given\\.$#" count: 2