diff --git a/phpstan/baseline.neon b/phpstan/baseline.neon index 125889869..cf5726ced 100644 --- a/phpstan/baseline.neon +++ b/phpstan/baseline.neon @@ -130,11 +130,6 @@ parameters: count: 1 path: ../src/Composer/Autoload/AutoloadGenerator.php - - - message: "#^Parameter \\#2 \\$excluded of method Composer\\\\Autoload\\\\AutoloadGenerator\\:\\:generateClassMap\\(\\) expects array\\\\|null, array\\|null given\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - message: "#^Parameter \\#2 \\$excluded of static method Composer\\\\Autoload\\\\ClassMapGenerator\\:\\:createMap\\(\\) expects string\\|null, array\\|string\\|null given\\.$#" count: 1 @@ -760,6 +755,11 @@ parameters: count: 1 path: ../src/Composer/Command/RemoveCommand.php + - + message: "#^Offset 'require'\\|'require\\-dev' does not exist on array\\{require\\?\\: array\\, require\\-dev\\?\\: array\\\\}\\.$#" + count: 8 + path: ../src/Composer/Command/RemoveCommand.php + - message: "#^Only booleans are allowed in an if condition, Composer\\\\Composer\\|null given\\.$#" count: 1 @@ -2132,7 +2132,7 @@ parameters: - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 4 + count: 3 path: ../src/Composer/Downloader/FileDownloader.php - @@ -2415,11 +2415,6 @@ parameters: count: 1 path: ../src/Composer/Downloader/VcsDownloader.php - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Downloader/VcsDownloader.php - - message: "#^Only booleans are allowed in &&, string\\|null given on the right side\\.$#" count: 3 @@ -2545,11 +2540,6 @@ parameters: count: 1 path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - message: "#^Variable static method call on string\\.$#" count: 1 @@ -3135,11 +3125,6 @@ parameters: count: 1 path: ../src/Composer/Package/Archiver/ArchiveManager.php - - - message: "#^Parameter \\#2 \\$sourceType of method Composer\\\\Package\\\\Archiver\\\\ArchiverInterface\\:\\:supports\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Package/Archiver/ArchiveManager.php - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" count: 1 @@ -3201,7 +3186,7 @@ parameters: path: ../src/Composer/Package/Comparer/Comparer.php - - message: "#^Only booleans are allowed in a negated boolean, int given\\.$#" + message: "#^Only booleans are allowed in a negated boolean, int\\<0, 3\\> given\\.$#" count: 1 path: ../src/Composer/Package/Comparer/Comparer.php @@ -3482,7 +3467,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/Package/Locker.php - @@ -3622,7 +3607,7 @@ parameters: - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 4 + count: 3 path: ../src/Composer/Platform/HhvmDetector.php - @@ -4218,11 +4203,6 @@ parameters: count: 1 path: ../src/Composer/Repository/RepositoryManager.php - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Repository/RepositoryManager.php - - message: "#^Foreach overwrites \\$repo with its value variable\\.$#" count: 1 @@ -4705,7 +4685,7 @@ parameters: - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 7 + count: 6 path: ../src/Composer/Repository/VcsRepository.php - @@ -5208,11 +5188,6 @@ parameters: count: 1 path: ../src/Composer/Util/Http/RequestProxy.php - - - message: "#^Argument of an invalid type array\\\\>\\|string supplied for foreach, only iterables are supported\\.$#" - count: 1 - path: ../src/Composer/Util/HttpDownloader.php - - message: "#^Cannot call method abortRequest\\(\\) on Composer\\\\Util\\\\Http\\\\CurlDownloader\\|null\\.$#" count: 1 @@ -5263,6 +5238,21 @@ parameters: count: 1 path: ../src/Composer/Util/HttpDownloader.php + - + message: "#^Offset 'info'\\|'warning' does not exist on array\\{warning\\?\\: string, info\\?\\: string, warning\\-versions\\?\\: string, info\\-versions\\?\\: string, warnings\\?\\: array\\, infos\\?\\: array\\\\}\\.$#" + count: 1 + path: ../src/Composer/Util/HttpDownloader.php + + - + message: "#^Offset 'info\\-versions'\\|'warning\\-versions' does not exist on array\\{warning\\?\\: string, info\\?\\: string, warning\\-versions\\?\\: string, info\\-versions\\?\\: string, warnings\\?\\: array\\, infos\\?\\: array\\\\}\\.$#" + count: 1 + path: ../src/Composer/Util/HttpDownloader.php + + - + message: "#^Offset 'infos'\\|'warnings' does not exist on array\\{warning\\?\\: string, info\\?\\: string, warning\\-versions\\?\\: string, info\\-versions\\?\\: string, warnings\\?\\: array\\, infos\\?\\: array\\\\}\\.$#" + count: 1 + path: ../src/Composer/Util/HttpDownloader.php + - message: "#^Offset 'options' does not exist on array\\{url\\: string, options\\?\\: array, copyTo\\?\\: string\\|null\\}\\.$#" count: 3 @@ -5293,11 +5283,6 @@ parameters: count: 2 path: ../src/Composer/Util/HttpDownloader.php - - - message: "#^Parameter \\#1 \\$constraints of method Composer\\\\Package\\\\Version\\\\VersionParser\\:\\:parseConstraints\\(\\) expects string, array\\\\>\\|string given\\.$#" - count: 1 - path: ../src/Composer/Util/HttpDownloader.php - - message: "#^Parameter \\#4 \\$body of class Composer\\\\Util\\\\Http\\\\Response constructor expects string\\|null, bool\\|string given\\.$#" count: 1