From b96821c7276804bd63b6dbe7ae7994ea43e8ee47 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 22 Aug 2024 15:04:02 +0200 Subject: [PATCH] Fix build --- phpstan/baseline-8.3.neon | 2 +- phpstan/baseline.neon | 54 +++++---------------------------------- 2 files changed, 8 insertions(+), 48 deletions(-) diff --git a/phpstan/baseline-8.3.neon b/phpstan/baseline-8.3.neon index cf5444103..2b6d16ef0 100644 --- a/phpstan/baseline-8.3.neon +++ b/phpstan/baseline-8.3.neon @@ -177,7 +177,7 @@ parameters: - message: "#^Casting to string something that's already string\\.$#" - count: 4 + count: 3 path: ../src/Composer/Util/Filesystem.php - diff --git a/phpstan/baseline.neon b/phpstan/baseline.neon index 9dd319027..a5ca524b6 100644 --- a/phpstan/baseline.neon +++ b/phpstan/baseline.neon @@ -1655,51 +1655,6 @@ parameters: count: 3 path: ../src/Composer/Downloader/HgDownloader.php - - - message: "#^Only booleans are allowed in an if condition, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Downloader/PathDownloader.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/Downloader/PathDownloader.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Downloader/PathDownloader.php - - - - message: "#^Parameter \\#1 \\$path of function realpath expects string, string\\|null given\\.$#" - count: 3 - path: ../src/Composer/Downloader/PathDownloader.php - - - - message: "#^Parameter \\#1 \\$path of method Composer\\\\Util\\\\Filesystem\\:\\:isAbsolutePath\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Downloader/PathDownloader.php - - - - message: "#^Parameter \\#1 \\$path of method Composer\\\\Util\\\\Filesystem\\:\\:normalizePath\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Downloader/PathDownloader.php - - - - message: "#^Parameter \\#1 \\$path of method Composer\\\\Util\\\\Filesystem\\:\\:normalizePath\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Downloader/PathDownloader.php - - - - message: "#^Parameter \\#1 \\$target of method Composer\\\\Util\\\\Filesystem\\:\\:junction\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Downloader/PathDownloader.php - - - - message: "#^Parameter \\#2 \\$to of method Composer\\\\Util\\\\Filesystem\\:\\:findShortestPath\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Downloader/PathDownloader.php - - message: "#^Cannot call method cleanupClientSpec\\(\\) on Composer\\\\Util\\\\Perforce\\|null\\.$#" count: 1 @@ -1947,7 +1902,7 @@ parameters: - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" - count: 6 + count: 5 path: ../src/Composer/Factory.php - @@ -1967,7 +1922,7 @@ parameters: - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 3 + count: 2 path: ../src/Composer/Factory.php - @@ -3713,6 +3668,11 @@ parameters: count: 1 path: ../src/Composer/Util/ConfigValidator.php + - + message: "#^Casting to string something that's already string\\.$#" + count: 1 + path: ../src/Composer/Util/Filesystem.php + - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" count: 1