From 52129fb84454abb0e3d7fcae17425be215812587 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 5 Jan 2022 16:27:04 +0100 Subject: [PATCH] Allow ProcessExecutor to receive commands as arrays, refs #6552 --- phpstan/baseline-8.1.neon | 8809 +---------------- phpstan/baseline.neon | 452 +- .../Package/Version/VersionGuesser.php | 2 +- src/Composer/Util/ProcessExecutor.php | 33 +- .../Test/Mock/ProcessExecutorMock.php | 22 +- .../Package/Loader/RootPackageLoaderTest.php | 4 +- .../Package/Version/VersionGuesserTest.php | 28 +- 7 files changed, 225 insertions(+), 9125 deletions(-) diff --git a/phpstan/baseline-8.1.neon b/phpstan/baseline-8.1.neon index 9b3c30243cb4..657c6b34b7b3 100644 --- a/phpstan/baseline-8.1.neon +++ b/phpstan/baseline-8.1.neon @@ -1,8875 +1,402 @@ parameters: ignoreErrors: - - message: "#^Argument of an invalid type array\\\\|string supplied for foreach, only iterables are supported\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Binary operation \"\\.\" between non\\-empty\\-string and array\\|string\\|null results in an error\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Cannot call method writeError\\(\\) on Composer\\\\IO\\\\IOInterface\\|null\\.$#" - count: 2 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Casting to bool something that's already bool\\.$#" - count: 6 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Casting to string something that's already string\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 10 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Method Composer\\\\Autoload\\\\AutoloadGenerator\\:\\:parseAutoloads\\(\\) should return array\\{psr\\-0\\: array\\\\>, psr\\-4\\: array\\\\>, classmap\\: array\\, files\\: array\\, exclude\\-from\\-classmap\\: array\\\\} but returns array\\{psr\\-0\\: array\\\\|string\\>, psr\\-4\\: array\\\\|string\\>, classmap\\: array\\\\|string\\>, files\\: array\\\\|string\\>, exclude\\-from\\-classmap\\: array\\\\|string\\>\\}\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\IO\\\\IOInterface\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Only booleans are allowed in &&, array\\\\|int\\|string\\>\\|bool\\|string\\>\\|bool\\|string\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Only booleans are allowed in &&, bool\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Only booleans are allowed in &&, mixed given on the left side\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" - count: 4 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Only booleans are allowed in an if condition, string given\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 3 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Parameter \\#1 \\$files of method Composer\\\\Autoload\\\\AutoloadGenerator\\:\\:getIncludeFilesFile\\(\\) expects array\\, array\\\\|string\\> given\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Parameter \\#1 \\$from of method Composer\\\\Util\\\\Filesystem\\:\\:findShortestPathCode\\(\\) expects string, string\\|false given\\.$#" - count: 5 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Parameter \\#1 \\$packageMap of method Composer\\\\Autoload\\\\AutoloadGenerator\\:\\:parseAutoloadsType\\(\\) expects array\\, non\\-empty\\-array\\ given\\.$#" - count: 5 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Parameter \\#1 \\$path of function realpath expects string, string\\|false given\\.$#" - count: 3 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Parameter \\#1 \\$path of method Composer\\\\Util\\\\Filesystem\\:\\:normalizePath\\(\\) expects string, string\\|false given\\.$#" - count: 2 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Parameter \\#1 \\$str of function strtr expects string, string\\|false given\\.$#" - count: 3 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Parameter \\#2 \\$content of method Composer\\\\Util\\\\Filesystem\\:\\:filePutContentsIfModified\\(\\) expects string, string\\|null given\\.$#" - 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 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Parameter \\#2 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:isMatch\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Parameter \\#2 \\$to of method Composer\\\\Util\\\\Filesystem\\:\\:findShortestPathCode\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Parameter \\#6 \\$namespaceFilter of method Composer\\\\Autoload\\\\AutoloadGenerator\\:\\:addClassMapCode\\(\\) expects string\\|null, int\\|string given\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Strict comparison using \\!\\=\\= between string and false will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Autoload/AutoloadGenerator.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/Autoload/ClassLoader.php - - - - message: "#^Only booleans are allowed in &&, string\\|false given on the right side\\.$#" - count: 1 - path: ../src/Composer/Autoload/ClassLoader.php - - - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" - count: 4 - path: ../src/Composer/Autoload/ClassLoader.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Autoload/ClassLoader.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Autoload/ClassLoader.php - - - - message: "#^Parameter \\#1 \\$callback of function spl_autoload_register expects \\(callable\\(string\\)\\: void\\)\\|null, array\\{\\$this\\(Composer\\\\Autoload\\\\ClassLoader\\), 'loadClass'\\} given\\.$#" - count: 1 - path: ../src/Composer/Autoload/ClassLoader.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Autoload/ClassMapGenerator.php - - - - message: "#^Cannot call method getPathname\\(\\) on SplFileInfo\\|string\\.$#" - count: 1 - path: ../src/Composer/Autoload/ClassMapGenerator.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 2 - path: ../src/Composer/Autoload/ClassMapGenerator.php - - - - message: "#^Method Composer\\\\Autoload\\\\ClassMapGenerator\\:\\:findClasses\\(\\) should return array\\ but returns array\\\\.$#" - count: 1 - path: ../src/Composer/Autoload/ClassMapGenerator.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\IO\\\\IOInterface\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Autoload/ClassMapGenerator.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" - count: 2 - path: ../src/Composer/Autoload/ClassMapGenerator.php - - - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" - count: 1 - path: ../src/Composer/Autoload/ClassMapGenerator.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\IO\\\\IOInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Autoload/ClassMapGenerator.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Autoload/ClassMapGenerator.php - - - - message: "#^Parameter \\#1 \\$path of function realpath expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Autoload/ClassMapGenerator.php - - - - message: "#^Parameter \\#1 \\$str of function preg_quote expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Autoload/ClassMapGenerator.php - - - - message: "#^Parameter \\#1 \\$str of function strtr expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Autoload/ClassMapGenerator.php - - - - message: "#^Parameter \\#3 \\$baseNamespace of static method Composer\\\\Autoload\\\\ClassMapGenerator\\:\\:filterByNamespace\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Autoload/ClassMapGenerator.php - - - - message: "#^Parameter \\#5 \\$basePath of static method Composer\\\\Autoload\\\\ClassMapGenerator\\:\\:filterByNamespace\\(\\) expects string, array\\\\|string\\|Traversable\\ given\\.$#" - count: 1 - path: ../src/Composer/Autoload/ClassMapGenerator.php - - - - message: "#^Casting to bool something that's already bool\\.$#" - count: 2 - path: ../src/Composer/Cache.php - - - - message: "#^Only booleans are allowed in a negated boolean, int given\\.$#" - count: 1 - path: ../src/Composer/Cache.php - - - - message: "#^Only booleans are allowed in a negated boolean, int\\<0, 50\\> given\\.$#" - count: 1 - path: ../src/Composer/Cache.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 1 - path: ../src/Composer/Cache.php - - - - message: "#^Only booleans are allowed in an if condition, bool\\|null given\\.$#" - count: 1 - path: ../src/Composer/Cache.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Cache.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Cache.php - - - - message: "#^Cannot call method getPackage\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/ArchiveCommand.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\Composer\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/Command/ArchiveCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, \\(Composer\\\\Package\\\\BasePackage&Composer\\\\Package\\\\CompletePackageInterface\\)\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/ArchiveCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Config\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/ArchiveCommand.php - - - - message: "#^Only booleans are allowed in an elseif condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Command/ArchiveCommand.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Composer\\|null given\\.$#" - count: 3 - path: ../src/Composer/Command/ArchiveCommand.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/ArchiveCommand.php - - - - message: "#^Parameter \\#1 \\$from of method Composer\\\\Util\\\\Filesystem\\:\\:findShortestPath\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/ArchiveCommand.php - - - - message: "#^Call to function method_exists\\(\\) with Symfony\\\\Component\\\\Console\\\\Helper\\\\TableStyle and 'setVerticalBorderCh…' will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Command/BaseCommand.php - - - - message: "#^Instanceof between Composer\\\\Console\\\\Application and Composer\\\\Console\\\\Application will always evaluate to true\\.$#" - count: 2 - path: ../src/Composer/Command/BaseCommand.php - - - - message: "#^Only booleans are allowed in &&, mixed given on the right side\\.$#" - count: 3 - path: ../src/Composer/Command/BaseCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 1 - path: ../src/Composer/Command/BaseCommand.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Composer\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/BaseCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 2 - path: ../src/Composer/Command/BaseCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" - count: 2 - path: ../src/Composer/Command/BaseCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the right side\\.$#" - count: 1 - path: ../src/Composer/Command/BaseCommand.php - - - - message: "#^Parameter \\#3 \\$command of class Composer\\\\Plugin\\\\PreCommandRunEvent constructor expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/BaseCommand.php - - - - message: "#^Cannot call method getConfig\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/BaseDependencyCommand.php - - - - message: "#^Cannot call method getEventDispatcher\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/BaseDependencyCommand.php - - - - message: "#^Cannot call method getPackage\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/BaseDependencyCommand.php - - - - message: "#^Cannot call method getRepositoryManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/BaseDependencyCommand.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 3 - path: ../src/Composer/Command/BaseDependencyCommand.php - - - - message: "#^Offset int does not exist on array\\\\|null\\.$#" - count: 2 - path: ../src/Composer/Command/BaseDependencyCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Package\\\\BasePackage\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/BaseDependencyCommand.php - - - - message: "#^Only booleans are allowed in an elseif condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/Command/BaseDependencyCommand.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Package\\\\BasePackage\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/BaseDependencyCommand.php - - - - message: "#^Only booleans are allowed in an if condition, array\\|bool given\\.$#" - count: 1 - path: ../src/Composer/Command/BaseDependencyCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/Command/BaseDependencyCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" - count: 1 - path: ../src/Composer/Command/BaseDependencyCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the right side\\.$#" - count: 1 - path: ../src/Composer/Command/BaseDependencyCommand.php - - - - message: "#^Parameter \\#1 \\$results of method Composer\\\\Command\\\\BaseDependencyCommand\\:\\:printTree\\(\\) expects array\\, non\\-empty\\-array\\|true given\\.$#" - count: 1 - path: ../src/Composer/Command/BaseDependencyCommand.php - - - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\\\|null given\\.$#" - count: 2 - path: ../src/Composer/Command/BaseDependencyCommand.php - - - - message: "#^Parameter \\#2 \\$commandName of class Composer\\\\Plugin\\\\CommandEvent constructor expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/BaseDependencyCommand.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Command/BaseDependencyCommand.php - - - - message: "#^Cannot access an offset on array\\\\|Composer\\\\Package\\\\Link\\>\\|Composer\\\\Package\\\\Link\\>\\|Composer\\\\Package\\\\Link\\>\\|Composer\\\\Package\\\\Link\\.$#" - count: 1 - path: ../src/Composer/Command/CheckPlatformReqsCommand.php - - - - message: "#^Cannot call method getLockedRepository\\(\\) on Composer\\\\Package\\\\Locker\\|null\\.$#" - count: 2 - path: ../src/Composer/Command/CheckPlatformReqsCommand.php - - - - message: "#^Cannot call method getLocker\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 2 - path: ../src/Composer/Command/CheckPlatformReqsCommand.php - - - - message: "#^Cannot call method getPackage\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 2 - path: ../src/Composer/Command/CheckPlatformReqsCommand.php - - - - message: "#^Cannot call method getRepositoryManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/CheckPlatformReqsCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Semver\\\\Constraint\\\\ConstraintInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/CheckPlatformReqsCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Command/CheckPlatformReqsCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 3 - path: ../src/Composer/Command/CheckPlatformReqsCommand.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, Composer\\\\Package\\\\Link\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/CheckPlatformReqsCommand.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, mixed given\\.$#" - count: 3 - path: ../src/Composer/Command/CheckPlatformReqsCommand.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Command/CheckPlatformReqsCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 2 - path: ../src/Composer/Command/CheckPlatformReqsCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/ClearCacheCommand.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 3 - path: ../src/Composer/Command/ConfigCommand.php - - - - message: "#^Only booleans are allowed in &&, mixed given on the left side\\.$#" - count: 6 - path: ../src/Composer/Command/ConfigCommand.php - - - - message: "#^Only booleans are allowed in &&, mixed given on the right side\\.$#" - count: 5 - path: ../src/Composer/Command/ConfigCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 2 - path: ../src/Composer/Command/ConfigCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" - count: 1 - path: ../src/Composer/Command/ConfigCommand.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, mixed given\\.$#" - count: 4 - path: ../src/Composer/Command/ConfigCommand.php - - - - message: "#^Only booleans are allowed in an elseif condition, int\\<0, max\\>\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/ConfigCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 11 - path: ../src/Composer/Command/ConfigCommand.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/ConfigCommand.php - - - - message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\{Composer\\\\Config\\\\JsonConfigSource, string\\} given\\.$#" - count: 2 - path: ../src/Composer/Command/ConfigCommand.php - - - - message: "#^Parameter \\#1 \\$command of function escapeshellcmd expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/ConfigCommand.php - - - - message: "#^Parameter \\#1 \\$path of function dirname expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/ConfigCommand.php - - - - message: "#^Parameter \\#1 \\$path of function realpath expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/ConfigCommand.php - - - - message: "#^Parameter \\#2 \\$rawContents of method Composer\\\\Command\\\\ConfigCommand\\:\\:listConfiguration\\(\\) expects array\\, array\\|string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/ConfigCommand.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Command/ConfigCommand.php - - - - message: "#^Cannot call method isLocked\\(\\) on Composer\\\\Package\\\\Locker\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/CreateProjectCommand.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\Package\\\\PackageInterface\\|false given on the right side\\.$#" - count: 1 - path: ../src/Composer/Command/CreateProjectCommand.php - - - - message: "#^Only booleans are allowed in &&, mixed given on the right side\\.$#" - count: 1 - path: ../src/Composer/Command/CreateProjectCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Package\\\\PackageInterface\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/CreateProjectCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 3 - path: ../src/Composer/Command/CreateProjectCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/CreateProjectCommand.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/CreateProjectCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 2 - path: ../src/Composer/Command/CreateProjectCommand.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" - count: 2 - path: ../src/Composer/Command/CreateProjectCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" - count: 1 - path: ../src/Composer/Command/CreateProjectCommand.php - - - - message: "#^Parameter \\#1 \\$directory of function chdir expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/CreateProjectCommand.php - - - - message: "#^Parameter \\#1 \\$dirs of method Symfony\\\\Component\\\\Finder\\\\Finder\\:\\:in\\(\\) expects array\\\\|string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/CreateProjectCommand.php - - - - message: "#^Parameter \\#1 \\$from of method Composer\\\\Util\\\\Filesystem\\:\\:findShortestPath\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/CreateProjectCommand.php - - - - message: "#^Parameter \\#3 \\$existingRepos of static method Composer\\\\Repository\\\\RepositoryFactory\\:\\:generateRepositoryName\\(\\) expects array\\, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Command/CreateProjectCommand.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 5 - path: ../src/Composer/Command/CreateProjectCommand.php - - - - message: "#^Variable method call on Composer\\\\Package\\\\RootPackageInterface\\.$#" - count: 1 - path: ../src/Composer/Command/CreateProjectCommand.php - - - - message: "#^Cannot access offset 'libz_version' on array\\|false\\.$#" - count: 1 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Cannot access offset 'ssl_version' on array\\|false\\.$#" - count: 1 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Cannot access offset 'version' on array\\|false\\.$#" - count: 1 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Cannot call method getPrettyVersion\\(\\) on Composer\\\\Package\\\\BasePackage\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 4 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\\\|string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Composer\\|null given\\.$#" - count: 2 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\|string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, array\\ given on the left side\\.$#" - count: 1 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, array\\ given on the right side\\.$#" - count: 1 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Parameter \\#1 \\$haystack of function strpos expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Parameter \\#2 \\$data of function hash expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Parameter \\#2 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:isMatch\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 3 - path: ../src/Composer/Command/DiagnoseCommand.php - - - - message: "#^Cannot call method getAutoloadGenerator\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/DumpAutoloadCommand.php - - - - message: "#^Cannot call method getConfig\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/DumpAutoloadCommand.php - - - - message: "#^Cannot call method getEventDispatcher\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/DumpAutoloadCommand.php - - - - message: "#^Cannot call method getInstallationManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/DumpAutoloadCommand.php - - - - message: "#^Cannot call method getPackage\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/DumpAutoloadCommand.php - - - - message: "#^Cannot call method getRepositoryManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/DumpAutoloadCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 3 - path: ../src/Composer/Command/DumpAutoloadCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" - count: 2 - path: ../src/Composer/Command/DumpAutoloadCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the right side\\.$#" - count: 4 - path: ../src/Composer/Command/DumpAutoloadCommand.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Command/DumpAutoloadCommand.php - - - - message: "#^Cannot call method getConfig\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/ExecCommand.php - - - - message: "#^Cannot call method getEventDispatcher\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/ExecCommand.php - - - - message: "#^Cannot call method getPackage\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/ExecCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Command/ExecCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 1 - path: ../src/Composer/Command/ExecCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" - count: 1 - path: ../src/Composer/Command/ExecCommand.php - - - - message: "#^Parameter \\#1 \\.\\.\\.\\$arrays of function array_merge expects array, array\\\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/ExecCommand.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Command/FundCommand.php - - - - message: "#^Cannot call method getRepositoryManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 2 - path: ../src/Composer/Command/FundCommand.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 2 - path: ../src/Composer/Command/FundCommand.php - - - - message: "#^Only booleans are allowed in &&, array given on the left side\\.$#" - count: 1 - path: ../src/Composer/Command/FundCommand.php - - - - message: "#^Only booleans are allowed in &&, array\\\\> given on the right side\\.$#" - count: 2 - path: ../src/Composer/Command/FundCommand.php - - - - message: "#^Only booleans are allowed in &&, string given on the left side\\.$#" - count: 1 - path: ../src/Composer/Command/GlobalCommand.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/GlobalCommand.php - - - - message: "#^Cannot call method getPackage\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/HomeCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 1 - path: ../src/Composer/Command/HomeCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/HomeCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Command/HomeCommand.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/Command/HomeCommand.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Composer\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/HomeCommand.php - - - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Argument of an invalid type array\\\\|false supplied for foreach, only iterables are supported\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Binary operation \"\\.\" between 'The package name ' and non\\-empty\\-array\\|float\\|int\\\\|int\\<1, max\\>\\|non\\-empty\\-string\\|true results in an error\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Call to function method_exists\\(\\) with 'Symfony\\\\\\\\Component…' and 'fromShellCommandline' will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Cannot call method get\\(\\) on Symfony\\\\Component\\\\Console\\\\Helper\\\\HelperSet\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Cannot call method getRepoName\\(\\) on Composer\\\\Repository\\\\RepositoryInterface\\|null\\.$#" - count: 4 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Cannot call method getRepositoryManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Cannot call method search\\(\\) on Composer\\\\Repository\\\\CompositeRepository\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 9 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Instanceof between Composer\\\\Repository\\\\CompositeRepository and Composer\\\\Repository\\\\CompositeRepository will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Method Composer\\\\Command\\\\InitCommand\\:\\:getGitConfig\\(\\) should return array\\ but returns array\\\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\Package\\\\PackageInterface\\|false given on the right side\\.$#" - count: 3 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Package\\\\BasePackage\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Package\\\\PackageInterface\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Repository\\\\CompositeRepository\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Repository\\\\PlatformRepository\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, true\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, Composer\\\\Composer\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, bool\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in an elseif condition, string given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Package\\\\BasePackage\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Package\\\\PackageInterface\\|false given\\.$#" - count: 3 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Repository\\\\InstalledRepositoryInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 2 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in an if condition, int\\<0, max\\> given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 2 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" - count: 2 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Parameter \\#1 \\$author of method Composer\\\\Command\\\\InitCommand\\:\\:formatAuthors\\(\\) expects string, array\\|float\\|int\\\\|int\\<1, max\\>\\|string\\|true given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Parameter \\#1 \\$haystack of function strpos expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Parameter \\#1 \\$path of function basename expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Parameter \\#2 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:isMatch\\(\\) expects string, array\\|float\\|int\\\\|int\\<1, max\\>\\|string\\|true given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 15 - path: ../src/Composer/Command/InitCommand.php - - - - message: "#^Cannot call method getConfig\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/InstallCommand.php - - - - message: "#^Cannot call method getEventDispatcher\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/InstallCommand.php - - - - message: "#^Cannot call method getInstallationManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/InstallCommand.php - - - - message: "#^Cannot call method getLocker\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 2 - path: ../src/Composer/Command/InstallCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Package\\\\Locker\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/InstallCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 3 - path: ../src/Composer/Command/InstallCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 5 - path: ../src/Composer/Command/InstallCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" - count: 2 - path: ../src/Composer/Command/InstallCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the right side\\.$#" - count: 4 - path: ../src/Composer/Command/InstallCommand.php - - - - message: "#^Parameter \\#2 \\$composer of static method Composer\\\\Installer\\:\\:create\\(\\) expects Composer\\\\Composer, Composer\\\\Composer\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/InstallCommand.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Command/InstallCommand.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 2 - path: ../src/Composer/Command/LicensesCommand.php - - - - message: "#^Call to function method_exists\\(\\) with Symfony\\\\Component\\\\Console\\\\Helper\\\\TableStyle and 'setVerticalBorderCh…' will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Command/LicensesCommand.php - - - - message: "#^Cannot call method getEventDispatcher\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/LicensesCommand.php - - - - message: "#^Cannot call method getPackage\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/LicensesCommand.php - - - - message: "#^Cannot call method getRepositoryManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/LicensesCommand.php - - - - message: "#^Foreach overwrites \\$package with its value variable\\.$#" - count: 1 - path: ../src/Composer/Command/LicensesCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/Command/LicensesCommand.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Command/LicensesCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 1 - path: ../src/Composer/Command/OutdatedCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 8 - path: ../src/Composer/Command/OutdatedCommand.php - - - - message: "#^Cannot call method getAutoloadGenerator\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/ReinstallCommand.php - - - - message: "#^Cannot call method getConfig\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/ReinstallCommand.php - - - - message: "#^Cannot call method getDownloadManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/ReinstallCommand.php - - - - message: "#^Cannot call method getEventDispatcher\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/ReinstallCommand.php - - - - message: "#^Cannot call method getInstallationManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/ReinstallCommand.php - - - - message: "#^Cannot call method getPackage\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/ReinstallCommand.php - - - - message: "#^Cannot call method getRepositoryManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/ReinstallCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Command/ReinstallCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 2 - path: ../src/Composer/Command/ReinstallCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/Command/ReinstallCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" - count: 2 - path: ../src/Composer/Command/ReinstallCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the right side\\.$#" - count: 4 - path: ../src/Composer/Command/ReinstallCommand.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Command/ReinstallCommand.php - - - - message: "#^Cannot call method getConfig\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 3 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Cannot call method getEventDispatcher\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Cannot call method getInstallationManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Cannot call method getLockedRepository\\(\\) on Composer\\\\Package\\\\Locker\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Cannot call method getLocker\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 2 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Cannot call method getPackage\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 3 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Cannot call method getRepositoryManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Cannot call method isLocked\\(\\) on Composer\\\\Package\\\\Locker\\|null\\.$#" - count: 2 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Foreach overwrites \\$type with its key variable\\.$#" - count: 1 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Only booleans are allowed in &&, array\\ given on the right side\\.$#" - count: 2 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 6 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Only booleans are allowed in an elseif condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Composer\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 8 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" - count: 3 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the right side\\.$#" - count: 5 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Parameter \\#2 \\$array of static method Composer\\\\Pcre\\\\Preg\\:\\:grep\\(\\) expects array\\, array\\ given\\.$#" - count: 2 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Parameter \\#2 \\$composer of static method Composer\\\\Installer\\:\\:create\\(\\) expects Composer\\\\Composer, Composer\\\\Composer\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Command/RemoveCommand.php - - - - message: "#^Cannot call method getConfig\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 6 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Cannot call method getEventDispatcher\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 2 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Cannot call method getInstallationManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Cannot call method getLocker\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Cannot call method getPackage\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 4 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Cannot call method getPluginManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Cannot call method getRepositoryManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Cannot call method isLocked\\(\\) on Composer\\\\Package\\\\Locker\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 4 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Method Composer\\\\Command\\\\RequireCommand\\:\\:getPackagesByRequireKey\\(\\) should return array\\ but returns array\\\\.$#" - count: 1 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, int\\<0, max\\>\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 6 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, mixed given\\.$#" - count: 4 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 3 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" - count: 5 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the right side\\.$#" - count: 7 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Parameter \\#1 \\$contents of class Composer\\\\Json\\\\JsonManipulator constructor expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Parameter \\#2 \\$composer of static method Composer\\\\Installer\\:\\:create\\(\\) expects Composer\\\\Composer, Composer\\\\Composer\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Property Composer\\\\Command\\\\RequireCommand\\:\\:\\$composerBackup \\(string\\) does not accept string\\|false\\.$#" - count: 1 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Property Composer\\\\Command\\\\RequireCommand\\:\\:\\$lockBackup \\(string\\|null\\) does not accept string\\|false\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 3 - path: ../src/Composer/Command/RequireCommand.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Command/RunScriptCommand.php - - - - message: "#^Cannot call method getEventDispatcher\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 2 - path: ../src/Composer/Command/RunScriptCommand.php - - - - message: "#^Cannot call method getPackage\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/RunScriptCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, int\\<0, max\\> given\\.$#" - count: 1 - path: ../src/Composer/Command/RunScriptCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 2 - path: ../src/Composer/Command/RunScriptCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/Command/RunScriptCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" - count: 1 - path: ../src/Composer/Command/RunScriptCommand.php - - - - message: "#^Parameter \\#2 \\$composer of class Composer\\\\Script\\\\Event constructor expects Composer\\\\Composer, Composer\\\\Composer\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/RunScriptCommand.php - - - - message: "#^Cannot call method getEventDispatcher\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/ScriptAliasCommand.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/Command/ScriptAliasCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 1 - path: ../src/Composer/Command/ScriptAliasCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" - count: 1 - path: ../src/Composer/Command/ScriptAliasCommand.php - - - - message: "#^Parameter \\#3 \\$additionalArgs of method Composer\\\\EventDispatcher\\\\EventDispatcher\\:\\:dispatchScript\\(\\) expects array\\, array\\|bool\\|float\\|int\\|string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/ScriptAliasCommand.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Command/SearchCommand.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/Command/SearchCommand.php - - - - message: "#^Only booleans are allowed in &&, array\\\\> given on the left side\\.$#" - count: 1 - path: ../src/Composer/Command/SearchCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Composer\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/SearchCommand.php - - - - message: "#^Call to function base64_decode\\(\\) requires parameter \\#2 to be set\\.$#" - count: 1 - path: ../src/Composer/Command/SelfUpdateCommand.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Command/SelfUpdateCommand.php - - - - message: "#^Cannot access offset 'name' on array\\|false\\.$#" - count: 2 - path: ../src/Composer/Command/SelfUpdateCommand.php - - - - message: "#^Only booleans are allowed in &&, mixed given on the right side\\.$#" - count: 1 - path: ../src/Composer/Command/SelfUpdateCommand.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" - count: 2 - path: ../src/Composer/Command/SelfUpdateCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 1 - path: ../src/Composer/Command/SelfUpdateCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/SelfUpdateCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/SelfUpdateCommand.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Command/SelfUpdateCommand.php - - - - message: "#^Only booleans are allowed in an if condition, int\\<0, max\\> given\\.$#" - count: 1 - path: ../src/Composer/Command/SelfUpdateCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 6 - path: ../src/Composer/Command/SelfUpdateCommand.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/SelfUpdateCommand.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Command/SelfUpdateCommand.php - - - - message: "#^Parameter \\#1 \\$data of function openssl_verify expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/SelfUpdateCommand.php - - - - message: "#^Parameter \\#1 \\$from of function rename expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/SelfUpdateCommand.php - - - - message: "#^Parameter \\#1 \\$user_id of function posix_getpwuid expects int, int\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/SelfUpdateCommand.php - - - - message: "#^Parameter \\#2 \\$except of method Composer\\\\Command\\\\SelfUpdateCommand\\:\\:cleanBackups\\(\\) expects string\\|null, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/SelfUpdateCommand.php - - - - message: "#^Parameter \\#2 \\$permissions of function chmod expects int, int\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/SelfUpdateCommand.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Command/SelfUpdateCommand.php - - - - message: "#^Variable \\$match might not be defined\\.$#" - count: 2 - path: ../src/Composer/Command/SelfUpdateCommand.php - - - - message: "#^Argument of an invalid type array\\\\>\\|string supplied for foreach, only iterables are supported\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Argument of an invalid type array\\|string supplied for foreach, only iterables are supported\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Binary operation \"\\.\" between ' ' and array\\|string results in an error\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Binary operation \"\\.\" between '\\latest\\…' and array\\\\|string results in an error\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Binary operation \"\\.\" between non\\-empty\\-string and array\\\\|string results in an error\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Binary operation \"\\.\" between non\\-empty\\-string and array\\|bool\\|float\\|int\\|string results in an error\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Call to function array_search\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Cannot call method getId\\(\\) on Composer\\\\Package\\\\BasePackage\\|int\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Cannot call method getInstallationManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 4 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Cannot call method getLockedRepository\\(\\) on Composer\\\\Package\\\\Locker\\|null\\.$#" - count: 2 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Cannot call method getPackage\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 3 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Cannot call method getPrettyVersion\\(\\) on Composer\\\\Package\\\\BasePackage\\|int\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Cannot call method getRepositoryManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Cannot call method getVersion\\(\\) on Composer\\\\Package\\\\BasePackage\\|int\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Cannot call method isLocked\\(\\) on Composer\\\\Package\\\\Locker\\|null\\.$#" - count: 2 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 3 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Foreach overwrites \\$packages with its value variable\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Method Composer\\\\Command\\\\ShowCommand\\:\\:addTree\\(\\) should return array\\\\>\\|string\\>\\> but returns array\\\\>\\|string\\>\\>\\|string\\>\\>\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Method Composer\\\\Command\\\\ShowCommand\\:\\:appendAutoload\\(\\) should return array\\\\|string\\|null\\> but returns array\\\\|string\\>\\|string\\>\\|string\\|null\\>\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Method Composer\\\\Command\\\\ShowCommand\\:\\:appendLicenses\\(\\) should return array\\\\|string\\|null\\> but returns array\\\\|string\\>\\|string\\|null\\>\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Method Composer\\\\Command\\\\ShowCommand\\:\\:getPackage\\(\\) should return array\\{Composer\\\\Package\\\\CompletePackageInterface\\|null, array\\\\} but returns array\\{Composer\\\\Package\\\\BasePackage\\|int\\|null, array\\\\}\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Offset 'latest\\-status' does not exist on array\\{name\\: string, version\\?\\: string, latest\\: string, latest\\-status\\?\\: string, description\\?\\: string\\|null, path\\?\\: string\\|false, warning\\?\\: non\\-empty\\-string\\}\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\Composer\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\Package\\\\PackageInterface\\|false\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\Package\\\\PackageInterface\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\Package\\\\PackageInterface\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in &&, array\\ given on the right side\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in &&, array\\ given on the right side\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in &&, array\\\\>\\> given on the right side\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in &&, mixed given on the left side\\.$#" - count: 14 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in &&, mixed given on the right side\\.$#" - count: 5 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in &&, string given on the left side\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Composer\\|null given\\.$#" - count: 2 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Package\\\\BasePackage\\|int\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Repository\\\\RepositorySet\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\\\|null given\\.$#" - count: 2 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\\\|string given\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 9 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in an elseif condition, mixed given\\.$#" - count: 5 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Composer\\|null given\\.$#" - count: 3 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Package\\\\PackageInterface\\|null given\\.$#" - count: 2 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\>\\|string\\>\\>\\|string\\>\\> given\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\>\\|string\\>\\> given\\.$#" - count: 2 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\|string\\>\\> given\\.$#" - count: 2 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 4 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 3 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 13 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, array\\ given on the left side\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, array\\ given on the right side\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" - count: 3 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the right side\\.$#" - count: 4 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Parameter \\#1 \\$arrayTree of method Composer\\\\Command\\\\ShowCommand\\:\\:displayPackageTree\\(\\) expects array\\\\>, array\\\\>\\|string\\|null\\>\\> given\\.$#" - count: 2 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Parameter \\#1 \\$json of method Composer\\\\Command\\\\ShowCommand\\:\\:appendAutoload\\(\\) expects array\\\\|string\\|null\\>, array\\\\|string\\|false\\|null\\> given\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Parameter \\#1 \\$package of method Composer\\\\Repository\\\\CompositeRepository\\:\\:hasPackage\\(\\) expects Composer\\\\Package\\\\PackageInterface, Composer\\\\Package\\\\BasePackage\\|int given\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Parameter \\#1 \\$str of function strtok expects string, array\\|string given\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Parameter \\#1 \\$str of function strtok expects string, string\\|false given\\.$#" - count: 2 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Parameter \\#1 \\$string of function strlen expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Parameter \\#1 \\$string of function substr expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\\\>\\|string given\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|string given\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Parameter \\#2 \\$callback of function uasort expects callable\\(string, string\\)\\: int, 'version_compare' given\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Parameter \\#2 \\$composer of method Composer\\\\Command\\\\ShowCommand\\:\\:findLatestPackage\\(\\) expects Composer\\\\Composer, Composer\\\\Composer\\|null given\\.$#" - count: 2 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Parameter \\#2 \\$literals of method Composer\\\\DependencyResolver\\\\DefaultPolicy\\:\\:selectPreferredPackages\\(\\) expects array\\, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, array\\|string given\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Parameter \\#3 \\$preferredStability of method Composer\\\\Package\\\\Version\\\\VersionSelector\\:\\:findBestCandidate\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 12 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Variable method call on Composer\\\\Package\\\\CompletePackageInterface\\.$#" - count: 2 - path: ../src/Composer/Command/ShowCommand.php - - - - message: "#^Cannot call method getConfig\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/StatusCommand.php - - - - message: "#^Cannot call method getDownloadManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/StatusCommand.php - - - - message: "#^Cannot call method getEventDispatcher\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 3 - path: ../src/Composer/Command/StatusCommand.php - - - - message: "#^Cannot call method getInstallationManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/StatusCommand.php - - - - message: "#^Cannot call method getRepositoryManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/StatusCommand.php - - - - message: "#^Only booleans are allowed in &&, array\\\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/Command/StatusCommand.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Command/StatusCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\\\>\\> given\\.$#" - count: 1 - path: ../src/Composer/Command/StatusCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 2 - path: ../src/Composer/Command/StatusCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 1 - path: ../src/Composer/Command/StatusCommand.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, array\\\\>\\> given\\.$#" - count: 1 - path: ../src/Composer/Command/StatusCommand.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, array\\ given\\.$#" - count: 2 - path: ../src/Composer/Command/StatusCommand.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\>\\> given\\.$#" - count: 1 - path: ../src/Composer/Command/StatusCommand.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 2 - path: ../src/Composer/Command/StatusCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 3 - path: ../src/Composer/Command/StatusCommand.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 3 - path: ../src/Composer/Command/StatusCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, array\\\\>\\> given on the right side\\.$#" - count: 1 - path: ../src/Composer/Command/StatusCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, array\\ given on the left side\\.$#" - count: 1 - path: ../src/Composer/Command/StatusCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, array\\ given on the right side\\.$#" - count: 1 - path: ../src/Composer/Command/StatusCommand.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Command/StatusCommand.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Command/SuggestsCommand.php - - - - message: "#^Cannot call method getConfig\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/SuggestsCommand.php - - - - message: "#^Cannot call method getLockedRepository\\(\\) on Composer\\\\Package\\\\Locker\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/SuggestsCommand.php - - - - message: "#^Cannot call method getLocker\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/SuggestsCommand.php - - - - message: "#^Cannot call method getPackage\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 3 - path: ../src/Composer/Command/SuggestsCommand.php - - - - message: "#^Cannot call method getPlatformOverrides\\(\\) on Composer\\\\Package\\\\Locker\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/SuggestsCommand.php - - - - message: "#^Cannot call method getRepositoryManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/SuggestsCommand.php - - - - message: "#^Cannot call method isLocked\\(\\) on Composer\\\\Package\\\\Locker\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/SuggestsCommand.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 2 - path: ../src/Composer/Command/SuggestsCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 2 - path: ../src/Composer/Command/SuggestsCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 3 - path: ../src/Composer/Command/SuggestsCommand.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Command/SuggestsCommand.php - - - - message: "#^Call to function array_search\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Command/UpdateCommand.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Command/UpdateCommand.php - - - - message: "#^Cannot call method getConfig\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/UpdateCommand.php - - - - message: "#^Cannot call method getEventDispatcher\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/UpdateCommand.php - - - - message: "#^Cannot call method getInstallationManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/UpdateCommand.php - - - - message: "#^Cannot call method getPackage\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/UpdateCommand.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 3 - path: ../src/Composer/Command/UpdateCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Command/UpdateCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 5 - path: ../src/Composer/Command/UpdateCommand.php - - - - message: "#^Only booleans are allowed in an elseif condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/Command/UpdateCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 7 - path: ../src/Composer/Command/UpdateCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" - count: 3 - path: ../src/Composer/Command/UpdateCommand.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the right side\\.$#" - count: 4 - path: ../src/Composer/Command/UpdateCommand.php - - - - message: "#^Parameter \\#2 \\$composer of static method Composer\\\\Installer\\:\\:create\\(\\) expects Composer\\\\Composer, Composer\\\\Composer\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/UpdateCommand.php - - - - message: "#^Parameter \\#4 \\$composer of method Composer\\\\Command\\\\UpdateCommand\\:\\:getPackagesInteractively\\(\\) expects Composer\\\\Composer, Composer\\\\Composer\\|null given\\.$#" - count: 1 - path: ../src/Composer/Command/UpdateCommand.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Command/UpdateCommand.php - - - - message: "#^Cannot call method getLockedRepository\\(\\) on Composer\\\\Package\\\\Locker\\|null\\.$#" - count: 2 - path: ../src/Composer/Command/ValidateCommand.php - - - - message: "#^Cannot call method isFresh\\(\\) on Composer\\\\Package\\\\Locker\\|null\\.$#" - count: 1 - path: ../src/Composer/Command/ValidateCommand.php - - - - message: "#^Cannot call method isLocked\\(\\) on Composer\\\\Package\\\\Locker\\|null\\.$#" - count: 2 - path: ../src/Composer/Command/ValidateCommand.php - - - - message: "#^Only booleans are allowed in &&, mixed given on the left side\\.$#" - count: 2 - path: ../src/Composer/Command/ValidateCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Command/ValidateCommand.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 2 - path: ../src/Composer/Command/ValidateCommand.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, mixed given\\.$#" - count: 2 - path: ../src/Composer/Command/ValidateCommand.php - - - - message: "#^Only booleans are allowed in an elseif condition, array\\ given\\.$#" - count: 3 - path: ../src/Composer/Command/ValidateCommand.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Command/ValidateCommand.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 5 - path: ../src/Composer/Command/ValidateCommand.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/Command/ValidateCommand.php - - - - message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\{Composer\\\\Package\\\\RootPackageInterface, 'getDevRequires'\\|'getRequires'\\} given\\.$#" - count: 1 - path: ../src/Composer/Command/ValidateCommand.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Command/ValidateCommand.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Compiler.php - - - - message: "#^Call to function method_exists\\(\\) with 'Symfony\\\\\\\\Component…' and 'fromShellCommandline' will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Compiler.php - - - - message: "#^Parameter \\#1 \\$haystack of function strpos expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Compiler.php - - - - message: "#^Parameter \\#1 \\$source of method Composer\\\\Compiler\\:\\:stripWhitespace\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Compiler.php - - - - message: "#^Parameter \\#1 \\$str of function strtr expects string, string\\|false given\\.$#" - count: 2 - path: ../src/Composer/Compiler.php - - - - message: "#^Parameter \\#1 \\$string of function substr_replace expects array\\|string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Compiler.php - - - - message: "#^Parameter \\#2 \\$contents of method Phar\\:\\:addFromString\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Compiler.php - - - - message: "#^Parameter \\#3 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:replace\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Compiler.php - - - - message: "#^Anonymous function uses \\$this assigned to variable \\$config\\. Use \\$this directly in the function body\\.$#" - count: 1 - path: ../src/Composer/Config.php - - - - message: "#^Array \\(array\\\\) does not accept key 0\\|string\\.$#" - count: 1 - path: ../src/Composer/Config.php - - - - message: "#^Call to function array_search\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Config.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 2 - path: ../src/Composer/Config.php - - - - message: "#^Casting to bool something that's already bool\\.$#" - count: 1 - path: ../src/Composer/Config.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 2 - path: ../src/Composer/Config.php - - - - message: "#^Only booleans are allowed in &&, mixed given on the left side\\.$#" - count: 1 - path: ../src/Composer/Config.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Config.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\IO\\\\IOInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Config.php - - - - message: "#^Only booleans are allowed in an if condition, bool\\|string given\\.$#" - count: 1 - path: ../src/Composer/Config.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/Config.php - - - - message: "#^Parameter \\#1 \\$string of function rtrim expects string, int\\|string\\|null given\\.$#" - 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: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Config.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/Config/JsonConfigSource.php - - - - message: "#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Composer\\\\Json\\\\JsonManipulator, string\\} given\\.$#" - count: 1 - path: ../src/Composer/Config/JsonConfigSource.php - - - - message: "#^Parameter \\#1 \\$contents of class Composer\\\\Json\\\\JsonManipulator constructor expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Config/JsonConfigSource.php - - - - message: "#^Parameter \\#3 \\$fallback of method Composer\\\\Config\\\\JsonConfigSource\\:\\:manipulateJson\\(\\) expects callable\\(\\)\\: mixed, array\\|false given\\.$#" - count: 1 - path: ../src/Composer/Config/JsonConfigSource.php - - - - message: "#^Parameter \\#3 \\$fallback of method Composer\\\\Config\\\\JsonConfigSource\\:\\:manipulateJson\\(\\) expects callable\\(\\)\\: mixed, string given\\.$#" - count: 3 - path: ../src/Composer/Config/JsonConfigSource.php - - - - message: "#^Call to function is_array\\(\\) with array\\ will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Console/Application.php - - - - message: "#^Call to function method_exists\\(\\) with \\$this\\(Composer\\\\Console\\\\Application\\) and 'areExceptionsCaught' will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Console/Application.php - - - - message: "#^Instanceof between Composer\\\\Command\\\\BaseCommand and Composer\\\\Command\\\\BaseCommand will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Console/Application.php - - - - message: "#^Only booleans are allowed in &&, array\\\\|int\\|string\\> given on the left side\\.$#" - count: 1 - path: ../src/Composer/Console/Application.php - - - - message: "#^Only booleans are allowed in &&, array\\\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Console/Application.php - - - - message: "#^Only booleans are allowed in &&, int\\<0, max\\>\\|false given on the left side\\.$#" - count: 1 - path: ../src/Composer/Console/Application.php - - - - message: "#^Only booleans are allowed in &&, string given on the left side\\.$#" - count: 1 - path: ../src/Composer/Console/Application.php - - - - message: "#^Only booleans are allowed in &&, string given on the right side\\.$#" - count: 1 - path: ../src/Composer/Console/Application.php - - - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" - count: 1 - path: ../src/Composer/Console/Application.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#" - count: 2 - path: ../src/Composer/Console/Application.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Composer\\|null given\\.$#" - count: 1 - path: ../src/Composer/Console/Application.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Console/Application.php - - - - message: "#^Only booleans are allowed in an if condition, int given\\.$#" - count: 1 - path: ../src/Composer/Console/Application.php - - - - message: "#^Only booleans are allowed in an if condition, string given\\.$#" - count: 1 - path: ../src/Composer/Console/Application.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Console/Application.php - - - - message: "#^Only booleans are allowed in \\|\\|, string\\|false given on the left side\\.$#" - count: 2 - path: ../src/Composer/Console/Application.php - - - - message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Console/Application.php - - - - message: "#^Parameter \\#1 \\$name of method Symfony\\\\Component\\\\Console\\\\Application\\:\\:has\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Console/Application.php - - - - message: "#^Parameter \\#1 \\$path of function dirname expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Console/Application.php - - - - message: "#^Parameter \\#2 \\$file of method Composer\\\\Console\\\\GithubActionError\\:\\:emit\\(\\) expects string\\|null, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Console/Application.php - - - - message: "#^Property Composer\\\\Console\\\\Application\\:\\:\\$initialWorkingDirectory \\(string\\) does not accept string\\|false\\.$#" - count: 1 - path: ../src/Composer/Console/Application.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Console/Application.php - - - - message: "#^Only booleans are allowed in &&, int\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/Console/GithubActionError.php - - - - message: "#^Only booleans are allowed in &&, string\\|false given on the left side\\.$#" - count: 1 - path: ../src/Composer/Console/GithubActionError.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Console/GithubActionError.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Console/GithubActionError.php - - - - message: "#^Only booleans are allowed in an elseif condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Console/GithubActionError.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/Decisions.php - - - - message: "#^Method Composer\\\\DependencyResolver\\\\Decisions\\:\\:key\\(\\) should return int\\|null but returns int\\|string\\|null\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Decisions.php - - - - message: "#^Offset 0 does not exist on array\\{int, Composer\\\\DependencyResolver\\\\Rule\\}\\|null\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Decisions.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, Composer\\\\DependencyResolver\\\\Pool\\|null given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Decisions.php - - - - message: "#^Return type \\(array\\{int, Composer\\\\DependencyResolver\\\\Rule\\}\\|false\\) of method Composer\\\\DependencyResolver\\\\Decisions\\:\\:current\\(\\) should be covariant with return type \\(array\\{int, Composer\\\\DependencyResolver\\\\Rule\\}\\) of method Iterator\\\\>\\:\\:current\\(\\)$#" - count: 1 - path: ../src/Composer/DependencyResolver/Decisions.php - - - - message: "#^Anonymous function uses \\$this assigned to variable \\$policy\\. Use \\$this directly in the function body\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/DefaultPolicy.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/DefaultPolicy.php - - - - message: "#^Parameter \\#3 \\$requiredPackage \\(string\\) of method Composer\\\\DependencyResolver\\\\DefaultPolicy\\:\\:selectPreferredPackages\\(\\) should be contravariant with parameter \\$requiredPackage \\(string\\|null\\) of method Composer\\\\DependencyResolver\\\\PolicyInterface\\:\\:selectPreferredPackages\\(\\)$#" - count: 1 - path: ../src/Composer/DependencyResolver/DefaultPolicy.php - - - - message: "#^Cannot access offset 'hash' on array\\|false\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/GenericRule.php - - - - message: "#^Cannot access offset 0 on array\\{int, Composer\\\\DependencyResolver\\\\Rule\\}\\|false\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/LockTransaction.php - - - - message: "#^Only booleans are allowed in &&, DateTime\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/LockTransaction.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/LockTransaction.php - - - - message: "#^Cannot access offset 'hash' on array\\|false\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/MultiConflictRule.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the right side\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Pool.php - - - - message: "#^Cannot call method getPackages\\(\\) on Composer\\\\Repository\\\\LockArrayRepository\\|null\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/PoolBuilder.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/PoolBuilder.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/PoolBuilder.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\EventDispatcher\\\\EventDispatcher\\|null given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/PoolBuilder.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/PoolBuilder.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/PoolBuilder.php - - - - message: "#^Parameter \\#4 \\$index of method Composer\\\\DependencyResolver\\\\PoolBuilder\\:\\:removeLoadedPackage\\(\\) expects int, int\\|string given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/PoolBuilder.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/PoolOptimizer.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/PoolOptimizer.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 4 - path: ../src/Composer/DependencyResolver/PoolOptimizer.php - - - - message: "#^Cannot call method getRepoName\\(\\) on Composer\\\\Repository\\\\RepositoryInterface\\|null\\.$#" - count: 4 - path: ../src/Composer/DependencyResolver/Problem.php - - - - message: "#^Cannot call method getRepository\\(\\) on Composer\\\\Package\\\\PackageInterface\\|false\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/Problem.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Problem.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\DependencyResolver\\\\Pool\\|null given on the left side\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/Problem.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\Semver\\\\Constraint\\\\ConstraintInterface\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Problem.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Problem.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, Composer\\\\Semver\\\\Constraint\\\\ConstraintInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Problem.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, string given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Problem.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Package\\\\BasePackage\\|null given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Problem.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 5 - path: ../src/Composer/DependencyResolver/Problem.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Problem.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\> given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Problem.php - - - - message: "#^Only booleans are allowed in an if condition, int\\<0, max\\> given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Problem.php - - - - message: "#^Parameter \\#2 \\$callback of function uksort expects callable\\(string, string\\)\\: int, 'version_compare' given\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/Problem.php - - - - message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Problem.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Problem.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Repository\\\\LockArrayRepository\\|null given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Request.php - - - - message: "#^Binary operation \"\\.\" between array\\{package\\: Composer\\\\Package\\\\BasePackage\\}\\|array\\{packageName\\: string, constraint\\: Composer\\\\Semver\\\\Constraint\\\\ConstraintInterface\\}\\|Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\Link\\|int\\|string and ' and thus cannot…' results in an error\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Rule.php - - - - message: "#^Binary operation \"\\.\" between literal\\-string&non\\-empty\\-string and array\\{package\\: Composer\\\\Package\\\\BasePackage\\}\\|array\\{packageName\\: string, constraint\\: Composer\\\\Semver\\\\Constraint\\\\ConstraintInterface\\}\\|Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\Link\\|int\\|string results in an error\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Rule.php - - - - message: "#^Cannot access offset 'constraint' on array\\{package\\: Composer\\\\Package\\\\BasePackage\\}\\|array\\{packageName\\: string, constraint\\: Composer\\\\Semver\\\\Constraint\\\\ConstraintInterface\\}\\|Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\Link\\|int\\|string\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/Rule.php - - - - message: "#^Cannot access offset 'package' on array\\{package\\: Composer\\\\Package\\\\BasePackage\\}\\|array\\{packageName\\: string, constraint\\: Composer\\\\Semver\\\\Constraint\\\\ConstraintInterface\\}\\|Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\Link\\|int\\|string\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/Rule.php - - - - message: "#^Cannot access offset 'packageName' on array\\{package\\: Composer\\\\Package\\\\BasePackage\\}\\|array\\{packageName\\: string, constraint\\: Composer\\\\Semver\\\\Constraint\\\\ConstraintInterface\\}\\|Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\Link\\|int\\|string\\.$#" - count: 4 - path: ../src/Composer/DependencyResolver/Rule.php - - - - message: "#^Cannot call method getConstraint\\(\\) on array\\\\|Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\Link\\|int\\|string\\.$#" - count: 3 - path: ../src/Composer/DependencyResolver/Rule.php - - - - message: "#^Cannot call method getSource\\(\\) on array\\\\|Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\Link\\|int\\\\|int\\<1, max\\>\\|string\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Rule.php - - - - message: "#^Cannot call method getTarget\\(\\) on array\\\\|Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\Link\\|int\\|string\\.$#" - count: 3 - path: ../src/Composer/DependencyResolver/Rule.php - - - - message: "#^Foreach overwrites \\$literal with its value variable\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Rule.php - - - - message: "#^Only booleans are allowed in &&, array\\ given on the left side\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Rule.php - - - - message: "#^Only booleans are allowed in &&, array\\ given on the right side\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Rule.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Rule.php - - - - message: "#^Only booleans are allowed in a negated boolean, int given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Rule.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Repository\\\\LockArrayRepository\\|null given\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/Rule.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Rule.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\|Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\Link\\|int\\|string given\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/Rule.php - - - - message: "#^Parameter \\#1 \\$literal of method Composer\\\\DependencyResolver\\\\Pool\\:\\:literalToPackage\\(\\) expects int, int\\|null given\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/Rule.php - - - - message: "#^Parameter \\#1 \\$packages of static method Composer\\\\DependencyResolver\\\\Problem\\:\\:getPackageList\\(\\) expects array\\, array\\ given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Rule.php - - - - message: "#^Possibly invalid array key type array\\\\|Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\Link\\|int\\|string\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/Rule.php - - - - message: "#^Array \\(array\\\\|Composer\\\\DependencyResolver\\\\Rule\\>\\) does not accept key int\\|string\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/RuleSet.php - - - - message: "#^Method Composer\\\\DependencyResolver\\\\RuleSet\\:\\:getTypes\\(\\) should return array\\{0, 1, 4\\} but returns array\\\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/RuleSet.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\DependencyResolver\\\\Pool\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/RuleSet.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\DependencyResolver\\\\Request\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/RuleSet.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\Repository\\\\RepositorySet\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/RuleSet.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\DependencyResolver\\\\Rule\\|null given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/RuleSetGenerator.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/RuleSetGenerator.php - - - - message: "#^Parameter \\#3 \\$reasonData of class Composer\\\\DependencyResolver\\\\GenericRule constructor expects array\\{package\\: Composer\\\\Package\\\\BasePackage\\}\\|array\\{packageName\\: string, constraint\\: Composer\\\\Semver\\\\Constraint\\\\ConstraintInterface\\}\\|Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\Link\\|int\\|string, array\\{package\\: Composer\\\\Package\\\\BasePackage\\}\\|array\\{packageName\\: string, constraint\\: Composer\\\\Semver\\\\Constraint\\\\ConstraintInterface\\}\\|Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\Link\\|int\\|string\\|null given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/RuleSetGenerator.php - - - - message: "#^Parameter \\#4 \\$reasonData of class Composer\\\\DependencyResolver\\\\Rule2Literals constructor expects array\\{package\\: Composer\\\\Package\\\\BasePackage\\}\\|array\\{packageName\\: string, constraint\\: Composer\\\\Semver\\\\Constraint\\\\ConstraintInterface\\}\\|Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\Link\\|int\\|string, array\\{package\\: Composer\\\\Package\\\\BasePackage\\}\\|array\\{packageName\\: string, constraint\\: Composer\\\\Semver\\\\Constraint\\\\ConstraintInterface\\}\\|Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\Link\\|int\\|string\\|null given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/RuleSetGenerator.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/RuleSetGenerator.php - - - - message: "#^Only booleans are allowed in a negated boolean, int\\<0, max\\> given\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/RuleSetIterator.php - - - - message: "#^Return type \\(\\-1\\|0\\|1\\|4\\) of method Composer\\\\DependencyResolver\\\\RuleSetIterator\\:\\:key\\(\\) should be covariant with return type \\(0\\|1\\|4\\) of method Iterator\\\\:\\:key\\(\\)$#" - count: 1 - path: ../src/Composer/DependencyResolver/RuleSetIterator.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/RuleWatchGraph.php - - - - message: "#^Cannot access offset 0 on array\\{int, Composer\\\\DependencyResolver\\\\Rule\\}\\|false\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Cannot access offset 1 on array\\{int, Composer\\\\DependencyResolver\\\\Rule\\}\\|false\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Casting to int something that's already int\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Foreach overwrites \\$literal with its value variable\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\DependencyResolver\\\\Rule\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Only booleans are allowed in &&, int given on the left side\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Only booleans are allowed in &&, int\\<0, max\\> given on the right side\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Only booleans are allowed in &&, mixed given on the left side\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\DependencyResolver\\\\Rule\\|null given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Only booleans are allowed in a negated boolean, int given\\.$#" - count: 3 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Only booleans are allowed in a negated boolean, int\\|null given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\DependencyResolver\\\\Rule\\|null given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Only booleans are allowed in an if condition, int given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Only booleans are allowed in an if condition, int\\<0, max\\> given\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Parameter \\#1 \\$literal of method Composer\\\\DependencyResolver\\\\Decisions\\:\\:decide\\(\\) expects int, int\\|string given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Parameter \\#1 \\$literals of class Composer\\\\DependencyResolver\\\\GenericRule constructor expects array\\, array\\ given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Parameter \\#1 \\$number of function abs expects int, int\\|null given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Parameter \\#1 \\$rule of method Composer\\\\DependencyResolver\\\\Problem\\:\\:addRule\\(\\) expects Composer\\\\DependencyResolver\\\\Rule, Composer\\\\DependencyResolver\\\\Rule\\|null given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Parameter \\#2 \\$literal of method Composer\\\\DependencyResolver\\\\Solver\\:\\:setPropagateLearn\\(\\) expects int\\|string, int\\|null given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Parameter \\#2 \\$presentMap of class Composer\\\\DependencyResolver\\\\LockTransaction constructor expects array\\, array\\ given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Solver.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/SolverProblemsException.php - - - - message: "#^Only booleans are allowed in &&, int\\<0, max\\>\\|false given on the left side\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/SolverProblemsException.php - - - - message: "#^Only booleans are allowed in &&, int\\<0, max\\>\\|false given on the right side\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/SolverProblemsException.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/SolverProblemsException.php - - - - message: "#^Only booleans are allowed in an if condition, int\\<0, max\\>\\|false given\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/SolverProblemsException.php - - - - message: "#^Only booleans are allowed in \\|\\|, int\\<0, max\\>\\|false given on the left side\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/SolverProblemsException.php - - - - message: "#^Only booleans are allowed in \\|\\|, int\\<0, max\\>\\|false given on the right side\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/SolverProblemsException.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Transaction.php - - - - message: "#^Only booleans are allowed in &&, array given on the right side\\.$#" - count: 1 - path: ../src/Composer/DependencyResolver/Transaction.php - - - - message: "#^Only booleans are allowed in a negated boolean, int\\<0, max\\> given\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/Transaction.php - - - - message: "#^Only booleans are allowed in \\|\\|, int\\<0, max\\> given on the right side\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/Transaction.php - - - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 3 - path: ../src/Composer/Downloader/ArchiveDownloader.php - - - - message: "#^Parameter \\#2 \\$path of method Composer\\\\Downloader\\\\FileDownloader\\:\\:removeCleanupPath\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Downloader/ArchiveDownloader.php - - - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 2 - path: ../src/Composer/Downloader/DownloadManager.php - - - - message: "#^Call to function array_search\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Downloader/DownloadManager.php - - - - message: "#^Cannot call method remove\\(\\) on Composer\\\\Downloader\\\\DownloaderInterface\\|null\\.$#" - count: 1 - path: ../src/Composer/Downloader/DownloadManager.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/Downloader/DownloadManager.php - - - - message: "#^Method Composer\\\\Downloader\\\\DownloadManager\\:\\:getDownloaderType\\(\\) should return string but returns string\\|false\\.$#" - count: 1 - path: ../src/Composer/Downloader/DownloadManager.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\Package\\\\PackageInterface\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Downloader/DownloadManager.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Downloader\\\\DownloaderInterface\\|null given\\.$#" - count: 4 - path: ../src/Composer/Downloader/DownloadManager.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Downloader/DownloadManager.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Downloader\\\\DownloaderInterface\\|null given\\.$#" - count: 4 - path: ../src/Composer/Downloader/DownloadManager.php - - - - message: "#^Only booleans are allowed in an if condition, React\\\\Promise\\\\PromiseInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Downloader/DownloadManager.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Downloader/DownloadManager.php - - - - message: "#^Parameter \\#1 \\$downloader of method Composer\\\\Downloader\\\\DownloadManager\\:\\:getDownloaderType\\(\\) expects Composer\\\\Downloader\\\\DownloaderInterface, Composer\\\\Downloader\\\\DownloaderInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Downloader/DownloadManager.php - - - - message: "#^Parameter \\#1 \\$type of method Composer\\\\Downloader\\\\DownloadManager\\:\\:getDownloader\\(\\) expects string, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Downloader/DownloadManager.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Downloader/DownloadManager.php - - - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 4 - path: ../src/Composer/Downloader/FileDownloader.php - - - - message: "#^Call to function array_search\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Downloader/FileDownloader.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Downloader/FileDownloader.php - - - - message: "#^Cannot access offset 'cacheKey' on array\\{base\\: string, processed\\: string, cacheKey\\: string\\}\\|false\\.$#" - count: 1 - path: ../src/Composer/Downloader/FileDownloader.php - - - - message: "#^Foreach overwrites \\$path with its value variable\\.$#" - count: 1 - path: ../src/Composer/Downloader/FileDownloader.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\Cache\\|null given on the left side\\.$#" - count: 4 - path: ../src/Composer/Downloader/FileDownloader.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Downloader/FileDownloader.php - - - - message: "#^Only booleans are allowed in a negated boolean, int given\\.$#" - count: 1 - path: ../src/Composer/Downloader/FileDownloader.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Downloader/FileDownloader.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\EventDispatcher\\\\EventDispatcher\\|null given\\.$#" - count: 2 - path: ../src/Composer/Downloader/FileDownloader.php - - - - message: "#^Only booleans are allowed in an if condition, Exception\\|null given\\.$#" - count: 1 - path: ../src/Composer/Downloader/FileDownloader.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\> given\\.$#" - count: 1 - path: ../src/Composer/Downloader/FileDownloader.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Downloader/FileDownloader.php - - - - message: "#^Only booleans are allowed in an if condition, int given\\.$#" - count: 1 - path: ../src/Composer/Downloader/FileDownloader.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Downloader/FileDownloader.php - - - - message: "#^Parameter \\#1 \\$path of function pathinfo expects string, string\\|false\\|null given\\.$#" - count: 2 - path: ../src/Composer/Downloader/FileDownloader.php - - - - message: "#^Parameter \\#1 \\$string of function trim expects string, array\\\\>\\|string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Downloader/FileDownloader.php - - - - message: "#^Parameter \\#1 \\$url of function parse_url expects string, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Downloader/FileDownloader.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 4 - path: ../src/Composer/Downloader/FileDownloader.php - - - - message: "#^Parameter \\#3 \\$cwd of method Composer\\\\Util\\\\ProcessExecutor\\:\\:execute\\(\\) expects string\\|null, string\\|false given\\.$#" - count: 5 - path: ../src/Composer/Downloader/FossilDownloader.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Downloader/FossilDownloader.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 5 - path: ../src/Composer/Downloader/GitDownloader.php - - - - message: "#^Foreach overwrites \\$match with its value variable\\.$#" - count: 1 - path: ../src/Composer/Downloader/GitDownloader.php - - - - message: "#^Only booleans are allowed in &&, mixed given on the right side\\.$#" - count: 1 - path: ../src/Composer/Downloader/GitDownloader.php - - - - message: "#^Only booleans are allowed in &&, string given on the left side\\.$#" - count: 1 - path: ../src/Composer/Downloader/GitDownloader.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" - count: 2 - path: ../src/Composer/Downloader/GitDownloader.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Downloader/GitDownloader.php - - - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" - count: 1 - path: ../src/Composer/Downloader/GitDownloader.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Downloader/GitDownloader.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" - count: 2 - path: ../src/Composer/Downloader/GitDownloader.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Downloader/GitDownloader.php - - - - message: "#^Parameter \\#1 \\$reference of method Composer\\\\Downloader\\\\GitDownloader\\:\\:getShortHash\\(\\) expects string, string\\|null given\\.$#" - count: 4 - path: ../src/Composer/Downloader/GitDownloader.php - - - - message: "#^Parameter \\#2 \\$reference of method Composer\\\\Downloader\\\\GitDownloader\\:\\:updateToCommit\\(\\) expects string, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Downloader/GitDownloader.php - - - - message: "#^Parameter \\#3 \\$ref of method Composer\\\\Util\\\\Git\\:\\:fetchRefOrSyncMirror\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Downloader/GitDownloader.php - - - - message: "#^Parameter \\#4 \\$date of method Composer\\\\Downloader\\\\GitDownloader\\:\\:updateToCommit\\(\\) expects DateTime, DateTime\\|null given\\.$#" - count: 2 - path: ../src/Composer/Downloader/GitDownloader.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Downloader/GitDownloader.php - - - - message: "#^Parameter \\#1 \\$path of function pathinfo expects string, string\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Downloader/GzipDownloader.php - - - - message: "#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#" - count: 1 - path: ../src/Composer/Downloader/GzipDownloader.php - - - - message: "#^Parameter \\#1 \\$stream of function fwrite expects resource, resource\\|false given\\.$#" - count: 1 - path: ../src/Composer/Downloader/GzipDownloader.php - - - - message: "#^Parameter \\#1 \\$stream of function gzclose expects resource, resource\\|false given\\.$#" - count: 1 - path: ../src/Composer/Downloader/GzipDownloader.php - - - - message: "#^Parameter \\#1 \\$stream of function gzread expects resource, resource\\|false given\\.$#" - count: 1 - path: ../src/Composer/Downloader/GzipDownloader.php - - - - message: "#^Parameter \\#1 \\$url of function parse_url expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Downloader/GzipDownloader.php - - - - message: "#^Parameter \\#3 \\$length of function fwrite expects int\\<0, max\\>\\|null, int given\\.$#" - count: 1 - path: ../src/Composer/Downloader/GzipDownloader.php - - - - message: "#^Parameter \\#3 \\$cwd of method Composer\\\\Util\\\\ProcessExecutor\\:\\:execute\\(\\) expects string\\|null, string\\|false given\\.$#" - count: 3 - path: ../src/Composer/Downloader/HgDownloader.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Downloader/HgDownloader.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Downloader/PathDownloader.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 \\$originDir of method Symfony\\\\Component\\\\Filesystem\\\\Filesystem\\:\\:symlink\\(\\) expects string, 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 - path: ../src/Composer/Downloader/PerforceDownloader.php - - - - message: "#^Cannot call method connectClient\\(\\) on Composer\\\\Util\\\\Perforce\\|null\\.$#" - count: 1 - path: ../src/Composer/Downloader/PerforceDownloader.php - - - - message: "#^Cannot call method getCommitLogs\\(\\) on Composer\\\\Util\\\\Perforce\\|null\\.$#" - count: 1 - path: ../src/Composer/Downloader/PerforceDownloader.php - - - - message: "#^Cannot call method p4Login\\(\\) on Composer\\\\Util\\\\Perforce\\|null\\.$#" - count: 1 - path: ../src/Composer/Downloader/PerforceDownloader.php - - - - message: "#^Cannot call method setStream\\(\\) on Composer\\\\Util\\\\Perforce\\|null\\.$#" - count: 1 - path: ../src/Composer/Downloader/PerforceDownloader.php - - - - message: "#^Cannot call method syncCodeBase\\(\\) on Composer\\\\Util\\\\Perforce\\|null\\.$#" - count: 1 - path: ../src/Composer/Downloader/PerforceDownloader.php - - - - message: "#^Cannot call method writeP4ClientSpec\\(\\) on Composer\\\\Util\\\\Perforce\\|null\\.$#" - count: 1 - path: ../src/Composer/Downloader/PerforceDownloader.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/Downloader/PerforceDownloader.php - - - - message: "#^Parameter \\#1 \\$repoConfig of static method Composer\\\\Util\\\\Perforce\\:\\:create\\(\\) expects array\\{unique_perforce_client_name\\?\\: string, depot\\?\\: string, branch\\?\\: string, p4user\\?\\: string, p4password\\?\\: string\\}, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Downloader/PerforceDownloader.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Downloader/SvnDownloader.php - - - - message: "#^Parameter \\#1 \\$version1 of function version_compare expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Downloader/SvnDownloader.php - - - - message: "#^Cannot call method getUniqueName\\(\\) on Composer\\\\Package\\\\PackageInterface\\|null\\.$#" - count: 3 - path: ../src/Composer/Downloader/VcsDownloader.php - - - - message: "#^Method Composer\\\\Downloader\\\\VcsDownloader\\:\\:prepareUrls\\(\\) should return array\\ but returns array\\\\.$#" - count: 1 - path: ../src/Composer/Downloader/VcsDownloader.php - - - - message: "#^Only booleans are allowed in &&, Exception\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/Downloader/VcsDownloader.php - - - - message: "#^Only booleans are allowed in a negated boolean, Exception\\|null given\\.$#" - count: 1 - path: ../src/Composer/Downloader/VcsDownloader.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Downloader/VcsDownloader.php - - - - message: "#^Only booleans are allowed in a negated boolean, int\\<0, max\\> given\\.$#" - count: 2 - path: ../src/Composer/Downloader/VcsDownloader.php - - - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" - count: 1 - path: ../src/Composer/Downloader/VcsDownloader.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" - count: 3 - path: ../src/Composer/Downloader/VcsDownloader.php - - - - message: "#^Only booleans are allowed in an elseif condition, int\\<0, max\\> given\\.$#" - count: 3 - path: ../src/Composer/Downloader/VcsDownloader.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Downloader/VcsDownloader.php - - - - message: "#^Only booleans are allowed in an if condition, string given\\.$#" - count: 1 - path: ../src/Composer/Downloader/VcsDownloader.php - - - - message: "#^Parameter \\#1 \\$fromReference of method Composer\\\\Downloader\\\\VcsDownloader\\:\\:getCommitLogs\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Downloader/VcsDownloader.php - - - - message: "#^Parameter \\#1 \\$haystack of function strpos expects string, string\\|false given\\.$#" - count: 2 - path: ../src/Composer/Downloader/VcsDownloader.php - - - - message: "#^Parameter \\#1 \\$package of method Composer\\\\Downloader\\\\VcsDownloader\\:\\:cleanChanges\\(\\) expects Composer\\\\Package\\\\PackageInterface, Composer\\\\Package\\\\PackageInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Downloader/VcsDownloader.php - - - - message: "#^Parameter \\#1 \\$path of function realpath expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Downloader/VcsDownloader.php - - - - message: "#^Parameter \\#1 \\$path of static method Composer\\\\Util\\\\Filesystem\\:\\:isLocalPath\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Downloader/VcsDownloader.php - - - - message: "#^Parameter \\#1 \\$string of function rawurldecode expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Downloader/VcsDownloader.php - - - - message: "#^Parameter \\#1 \\$string of function substr expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Downloader/VcsDownloader.php - - - - message: "#^Parameter \\#2 \\$toReference of method Composer\\\\Downloader\\\\VcsDownloader\\:\\:getCommitLogs\\(\\) expects string, string\\|null given\\.$#" - 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: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 2 - path: ../src/Composer/Downloader/ZipDownloader.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the right side\\.$#" - count: 3 - path: ../src/Composer/Downloader/ZipDownloader.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\\\> given\\.$#" - count: 3 - path: ../src/Composer/Downloader/ZipDownloader.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Downloader/ZipDownloader.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Downloader/ZipDownloader.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - - message: "#^Call to function is_callable\\(\\) with callable\\(\\)\\: mixed will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - - message: "#^Cannot access offset 0 on array\\{0\\: string, 1\\?\\: int\\}\\|int\\|string\\.$#" - count: 1 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - - message: "#^Cannot access offset 1 on array\\{0\\: string, 1\\?\\: int\\}\\|int\\|string\\.$#" - count: 1 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - - message: "#^Casting to bool something that's already bool\\.$#" - count: 1 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - - message: "#^Dynamic call to static method Composer\\\\EventDispatcher\\\\EventSubscriberInterface\\:\\:getSubscribedEvents\\(\\)\\.$#" - count: 1 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\<\\(callable\\)\\|string\\> given\\.$#" - count: 1 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, array given\\.$#" - count: 1 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Autoload\\\\ClassLoader\\|null given\\.$#" - count: 1 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" - count: 2 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - - message: "#^Only numeric types are allowed in \\+, int\\<0, max\\>\\|false given on the left side\\.$#" - count: 1 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - - message: "#^Parameter \\#1 \\$str of function preg_quote expects string, string\\|false given\\.$#" - count: 1 - 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\\.$#" - 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\\|null, int\\<0, max\\>\\|false given\\.$#" - count: 1 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - - message: "#^Parameter \\#3 \\$priority of method Composer\\\\EventDispatcher\\\\EventDispatcher\\:\\:addListener\\(\\) expects int, array\\\\|int\\|string given\\.$#" - count: 1 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - - message: "#^Parameter \\#3 \\$priority of method Composer\\\\EventDispatcher\\\\EventDispatcher\\:\\:addListener\\(\\) expects int, int\\|string given\\.$#" - 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 - path: ../src/Composer/EventDispatcher/EventDispatcher.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 3 - path: ../src/Composer/Factory.php - - - - message: "#^Offset 'line' does not exist on array\\{text\\?\\: string, token\\?\\: string, line\\?\\: int, loc\\?\\: array\\{first_line\\: int, first_column\\: int, last_line\\: int, last_column\\: int\\}, expected\\?\\: array\\, key\\: string\\}\\.$#" - count: 1 - path: ../src/Composer/Factory.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\IO\\\\IOInterface\\|null given on the left side\\.$#" - count: 3 - path: ../src/Composer/Factory.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#" - count: 3 - path: ../src/Composer/Factory.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\IO\\\\IOInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Factory.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Util\\\\ProcessExecutor\\|null given\\.$#" - count: 1 - path: ../src/Composer/Factory.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 4 - path: ../src/Composer/Factory.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" - count: 6 - path: ../src/Composer/Factory.php - - - - message: "#^Parameter \\#1 \\$input of method Seld\\\\JsonLint\\\\JsonParser\\:\\:parse\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Factory.php - - - - message: "#^Parameter \\#1 \\$path of class Composer\\\\Json\\\\JsonFile constructor expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Factory.php - - - - message: "#^Parameter \\#1 \\$path of function dirname expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Factory.php - - - - message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Factory.php - - - - message: "#^Parameter \\#4 \\$composerFileContents of class Composer\\\\Package\\\\Locker constructor expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Factory.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 5 - path: ../src/Composer/Factory.php - - - - message: "#^Array \\(array\\\\) does not accept array\\{username\\: string, password\\: string\\|null\\}\\.$#" - count: 1 - path: ../src/Composer/IO/BaseIO.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/IO/BaseIO.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 6 - path: ../src/Composer/IO/BaseIO.php - - - - message: "#^Instanceof between Symfony\\\\Component\\\\Console\\\\Input\\\\StringInput and Symfony\\\\Component\\\\Console\\\\Input\\\\StreamableInputInterface will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/IO/BufferIO.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, Symfony\\\\Component\\\\Console\\\\Formatter\\\\OutputFormatterInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/IO/BufferIO.php - - - - message: "#^PHPDoc type Symfony\\\\Component\\\\Console\\\\Input\\\\StringInput of property Composer\\\\IO\\\\BufferIO\\:\\:\\$input is not the same as PHPDoc type Symfony\\\\Component\\\\Console\\\\Input\\\\InputInterface of overridden property Composer\\\\IO\\\\ConsoleIO\\:\\:\\$input\\.$#" - count: 1 - path: ../src/Composer/IO/BufferIO.php - - - - message: "#^PHPDoc type Symfony\\\\Component\\\\Console\\\\Output\\\\StreamOutput of property Composer\\\\IO\\\\BufferIO\\:\\:\\$output is not the same as PHPDoc type Symfony\\\\Component\\\\Console\\\\Output\\\\OutputInterface of overridden property Composer\\\\IO\\\\ConsoleIO\\:\\:\\$output\\.$#" - count: 1 - path: ../src/Composer/IO/BufferIO.php - - - - message: "#^Parameter \\#1 \\$stream of class Symfony\\\\Component\\\\Console\\\\Output\\\\StreamOutput constructor expects resource, resource\\|false given\\.$#" - count: 1 - path: ../src/Composer/IO/BufferIO.php - - - - message: "#^Parameter \\#1 \\$stream of function fwrite expects resource, resource\\|false given\\.$#" - count: 1 - path: ../src/Composer/IO/BufferIO.php - - - - message: "#^Parameter \\#1 \\$stream of function rewind expects resource, resource\\|false given\\.$#" - count: 1 - path: ../src/Composer/IO/BufferIO.php - - - - message: "#^Parameter \\#1 \\$stream of method Symfony\\\\Component\\\\Console\\\\Input\\\\Input\\:\\:setStream\\(\\) expects resource, resource\\|false given\\.$#" - count: 1 - path: ../src/Composer/IO/BufferIO.php - - - - message: "#^Parameter \\#3 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:replaceCallback\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/IO/BufferIO.php - - - - message: "#^Parameter \\#1 \\$attempts of method Symfony\\\\Component\\\\Console\\\\Question\\\\Question\\:\\:setMaxAttempts\\(\\) expects int\\|null, int\\\\|int\\<1, max\\>\\|true\\|null given\\.$#" - count: 1 - path: ../src/Composer/IO/ConsoleIO.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/IO/ConsoleIO.php - - - - message: "#^Array \\(array\\\\|bool\\|string\\>\\|bool\\|string\\>\\>\\>\\) does not accept key \\(int\\|string\\)\\.$#" - count: 1 - path: ../src/Composer/InstalledVersions.php - - - - message: "#^Call to function method_exists\\(\\) with 'Composer\\\\\\\\Autoload…' and 'getRegisteredLoaders' will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/InstalledVersions.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/InstalledVersions.php - - - - message: "#^Parameter \\#1 \\$constraints of method Composer\\\\Semver\\\\VersionParser\\:\\:parseConstraints\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/InstalledVersions.php - - - - message: "#^Cannot call method getPackages\\(\\) on Composer\\\\Repository\\\\LockArrayRepository\\|null\\.$#" - count: 1 - path: ../src/Composer/Installer.php - - - - message: "#^Cannot call method getPackages\\(\\) on Composer\\\\Repository\\\\RepositoryInterface\\|null\\.$#" - count: 1 - path: ../src/Composer/Installer.php - - - - message: "#^Casting to bool something that's already bool\\.$#" - count: 15 - path: ../src/Composer/Installer.php - - - - message: "#^Method Composer\\\\Installer\\:\\:run\\(\\) should return 0\\|1\\|2\\|3\\|4 but returns int\\\\|int\\<1, max\\>\\.$#" - count: 1 - path: ../src/Composer/Installer.php - - - - message: "#^Only booleans are allowed in &&, array\\\\> given on the right side\\.$#" - count: 1 - path: ../src/Composer/Installer.php - - - - message: "#^Only booleans are allowed in &&, array\\\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Installer.php - - - - message: "#^Only booleans are allowed in &&, mixed given on the right side\\.$#" - count: 2 - path: ../src/Composer/Installer.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Repository\\\\LockArrayRepository\\|null given\\.$#" - count: 1 - path: ../src/Composer/Installer.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 2 - path: ../src/Composer/Installer.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Installer.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Repository\\\\LockArrayRepository\\|null given\\.$#" - count: 1 - path: ../src/Composer/Installer.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Repository\\\\RepositoryInterface\\|null given\\.$#" - count: 2 - path: ../src/Composer/Installer.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 2 - path: ../src/Composer/Installer.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Installer.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 5 - path: ../src/Composer/Installer.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Installer.php - - - - message: "#^Only booleans are allowed in an if condition, int given\\.$#" - count: 1 - path: ../src/Composer/Installer.php - - - - message: "#^Only booleans are allowed in \\|\\|, array\\\\|null given on the left side\\.$#" - count: 2 - path: ../src/Composer/Installer.php - - - - message: "#^Parameter \\#2 \\$stabilityFlags of class Composer\\\\Repository\\\\RepositorySet constructor expects array\\, non\\-empty\\-array\\ given\\.$#" - count: 1 - path: ../src/Composer/Installer.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Installer.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/Installer/BinaryInstaller.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 2 - path: ../src/Composer/Installer/BinaryInstaller.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Installer/BinaryInstaller.php - - - - message: "#^Parameter \\#1 \\$binPath of method Composer\\\\Installer\\\\BinaryInstaller\\:\\:installFullBinaries\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Installer/BinaryInstaller.php - - - - message: "#^Parameter \\#1 \\$binPath of method Composer\\\\Installer\\\\BinaryInstaller\\:\\:installUnixyProxyBinaries\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Installer/BinaryInstaller.php - - - - message: "#^Parameter \\#1 \\$path of function realpath expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Installer/BinaryInstaller.php - - - - message: "#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#" - count: 1 - path: ../src/Composer/Installer/BinaryInstaller.php - - - - message: "#^Parameter \\#1 \\$stream of function fgets expects resource, resource\\|false given\\.$#" - count: 1 - path: ../src/Composer/Installer/BinaryInstaller.php - - - - message: "#^Parameter \\#2 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:isMatch\\(\\) expects string, string\\|false given\\.$#" - count: 2 - path: ../src/Composer/Installer/BinaryInstaller.php - - - - message: "#^Property Composer\\\\Installer\\\\BinaryInstaller\\:\\:\\$binDir \\(string\\) does not accept string\\|false\\.$#" - count: 1 - path: ../src/Composer/Installer/BinaryInstaller.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Installer/BinaryInstaller.php - - - - message: "#^Anonymous function uses \\$this assigned to variable \\$installManager\\. Use \\$this directly in the function body\\.$#" - count: 2 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 2 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Foreach overwrites \\$batch with its value variable\\.$#" - count: 2 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\EventDispatcher\\\\EventDispatcher\\|null given on the right side\\.$#" - count: 2 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Only booleans are allowed in &&, array given on the right side\\.$#" - count: 1 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Only booleans are allowed in an if condition, React\\\\Promise\\\\PromiseInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Only booleans are allowed in an if condition, Symfony\\\\Component\\\\Console\\\\Helper\\\\ProgressBar\\|null given\\.$#" - count: 1 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 4 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Only booleans are allowed in an if condition, int\\<0, max\\> given\\.$#" - count: 2 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Only booleans are allowed in an if condition, int\\<0, max\\>\\|false given\\.$#" - count: 1 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, int\\\\|int\\<2, max\\>\\|string given\\.$#" - count: 1 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Parameter \\#1 \\$onFulfilled of method React\\\\Promise\\\\PromiseInterface\\:\\:then\\(\\) expects \\(callable\\(\\)\\: mixed\\)\\|null, React\\\\Promise\\\\PromiseInterface given\\.$#" - count: 1 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Parameter \\#2 \\$handler of function pcntl_signal expects \\(callable\\(\\)\\: mixed\\)\\|int, int\\|string given\\.$#" - count: 2 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Parameter \\#2 \\$offset of function array_splice expects int, int\\|string given\\.$#" - count: 1 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Parameter \\#3 \\$cleanupPromises of method Composer\\\\Installer\\\\InstallationManager\\:\\:executeBatch\\(\\) expects array\\, array\\<\\(Closure\\)\\|React\\\\Promise\\\\PromiseInterface\\> given\\.$#" - count: 1 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Trying to invoke React\\\\Promise\\\\PromiseInterface but it might not be a callable\\.$#" - count: 1 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Variable method call on \\$this\\(Composer\\\\Installer\\\\InstallationManager\\)\\.$#" - count: 2 - path: ../src/Composer/Installer/InstallationManager.php - - - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 1 - path: ../src/Composer/Installer/LibraryInstaller.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, string given\\.$#" - count: 1 - path: ../src/Composer/Installer/LibraryInstaller.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Installer/LibraryInstaller.php - - - - message: "#^Only booleans are allowed in an if condition, int\\<0, max\\>\\|false given\\.$#" - count: 1 - path: ../src/Composer/Installer/LibraryInstaller.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Installer/LibraryInstaller.php - - - - message: "#^Property Composer\\\\Installer\\\\LibraryInstaller\\:\\:\\$type \\(string\\) does not accept string\\|null\\.$#" - count: 1 - path: ../src/Composer/Installer/LibraryInstaller.php - - - - message: "#^Property Composer\\\\Installer\\\\LibraryInstaller\\:\\:\\$vendorDir \\(string\\) does not accept string\\|false\\.$#" - count: 1 - path: ../src/Composer/Installer/LibraryInstaller.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Installer/LibraryInstaller.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Installer/NoopInstaller.php - - - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 2 - path: ../src/Composer/Installer/PluginInstaller.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/Installer/PluginInstaller.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 2 - path: ../src/Composer/Installer/SuggestedPackagesReporter.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/Installer/SuggestedPackagesReporter.php - - - - message: "#^Foreach overwrites \\$suggesters with its value variable\\.$#" - count: 1 - path: ../src/Composer/Installer/SuggestedPackagesReporter.php - - - - message: "#^Only booleans are allowed in &&, array\\ given on the left side\\.$#" - count: 1 - path: ../src/Composer/Installer/SuggestedPackagesReporter.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, mixed given\\.$#" - count: 2 - path: ../src/Composer/Installer/SuggestedPackagesReporter.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Package\\\\PackageInterface\\|null given\\.$#" - count: 2 - path: ../src/Composer/Installer/SuggestedPackagesReporter.php - - - - message: "#^Only booleans are allowed in an if condition, array given\\.$#" - count: 1 - path: ../src/Composer/Installer/SuggestedPackagesReporter.php - - - - message: "#^Only booleans are allowed in an if condition, int given\\.$#" - count: 5 - path: ../src/Composer/Installer/SuggestedPackagesReporter.php - - - - message: "#^Method Composer\\\\Json\\\\JsonFile\\:\\:encode\\(\\) should return string but returns string\\|false\\.$#" - count: 2 - path: ../src/Composer/Json/JsonFile.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\IO\\\\IOInterface\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Json/JsonFile.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Json/JsonFile.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, int given\\.$#" - count: 1 - path: ../src/Composer/Json/JsonFile.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Util\\\\HttpDownloader\\|null given\\.$#" - count: 1 - path: ../src/Composer/Json/JsonFile.php - - - - message: "#^Only booleans are allowed in an if condition, int given\\.$#" - count: 1 - path: ../src/Composer/Json/JsonFile.php - - - - message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Json/JsonFile.php - - - - message: "#^Parameter \\#1 \\$json of static method Composer\\\\Json\\\\JsonFile\\:\\:parseJson\\(\\) expects string\\|null, string\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Json/JsonFile.php - - - - message: "#^Parameter \\#1 \\$json of static method Composer\\\\Json\\\\JsonFile\\:\\:validateSyntax\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Json/JsonFile.php - - - - message: "#^Parameter \\#1 \\$json of static method Composer\\\\Json\\\\JsonFormatter\\:\\:format\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Json/JsonFile.php - - - - message: "#^Parameter \\#1 \\$version1 of function version_compare expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Json/JsonFile.php - - - - message: "#^Parameter \\#3 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:replace\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Json/JsonFile.php - - - - message: "#^Only booleans are allowed in an if condition, int\\<0, 1\\> given\\.$#" - count: 1 - path: ../src/Composer/Json/JsonFormatter.php - - - - message: "#^Anonymous function uses \\$this assigned to variable \\$that\\. Use \\$this directly in the function body\\.$#" - count: 2 - path: ../src/Composer/Json/JsonManipulator.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 2 - path: ../src/Composer/Json/JsonManipulator.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 5 - path: ../src/Composer/Json/JsonManipulator.php - - - - message: "#^Foreach overwrites \\$match with its value variable\\.$#" - count: 1 - path: ../src/Composer/Json/JsonManipulator.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Json/JsonManipulator.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 4 - path: ../src/Composer/Json/JsonManipulator.php - - - - message: "#^Casting to string something that's already string\\.$#" - count: 1 - path: ../src/Composer/Json/JsonValidationException.php - - - - message: "#^Variable method call on Composer\\\\Package\\\\BasePackage\\.$#" - count: 1 - path: ../src/Composer/Package/AliasPackage.php - - - - message: "#^Variable property access on \\$this\\(Composer\\\\Package\\\\AliasPackage\\)\\.$#" - count: 1 - path: ../src/Composer/Package/AliasPackage.php - - - - message: "#^Call to function method_exists\\(\\) with Closure\\(SplFileInfo\\)\\: bool and 'bindTo' will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Package/Archiver/ArchivableFilesFinder.php - - - - message: "#^Parameter \\#1 \\$haystack of function strpos expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Package/Archiver/ArchivableFilesFinder.php - - - - message: "#^Parameter \\#1 \\$path of method Composer\\\\Util\\\\Filesystem\\:\\:normalizePath\\(\\) expects string, string\\|false given\\.$#" - count: 2 - path: ../src/Composer/Package/Archiver/ArchivableFilesFinder.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 4 - path: ../src/Composer/Package/Archiver/ArchiveManager.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Package/Archiver/ArchiveManager.php - - - - message: "#^Parameter \\#1 \\$directory of method Composer\\\\Util\\\\Filesystem\\:\\:removeDirectory\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Package/Archiver/ArchiveManager.php - - - - message: "#^Parameter \\#1 \\$sources of method Composer\\\\Package\\\\Archiver\\\\ArchiverInterface\\:\\:archive\\(\\) expects string, string\\|false given\\.$#" - 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 - path: ../src/Composer/Package/Archiver/BaseExcludeFilter.php - - - - message: "#^Parameter \\#1 \\$lines of method Composer\\\\Package\\\\Archiver\\\\BaseExcludeFilter\\:\\:parseLines\\(\\) expects array\\, array\\\\|false given\\.$#" - count: 1 - path: ../src/Composer/Package/Archiver/GitExcludeFilter.php - - - - message: "#^Dynamic call to static method Phar\\:\\:canCompress\\(\\)\\.$#" - count: 1 - path: ../src/Composer/Package/Archiver/PharArchiver.php - - - - message: "#^Only numeric types are allowed in \\-, int\\|false given on the left side\\.$#" - count: 1 - path: ../src/Composer/Package/Archiver/PharArchiver.php - - - - message: "#^Parameter \\#1 \\$sources of class Composer\\\\Package\\\\Archiver\\\\ArchivableFilesFinder constructor expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Package/Archiver/PharArchiver.php - - - - message: "#^Parameter \\#2 \\$baseDirectory of method Phar\\:\\:buildFromIterator\\(\\) expects string\\|null, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Package/Archiver/PharArchiver.php - - - - message: "#^Parameter \\#2 \\$sources of method Composer\\\\Package\\\\Archiver\\\\ArchivableFilesFilter\\:\\:addEmptyDir\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Package/Archiver/PharArchiver.php - - - - message: "#^Call to function method_exists\\(\\) with ZipArchive and 'setExternalAttribut…' will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Package/Archiver/ZipArchiver.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Package/BasePackage.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\Repository\\\\RepositoryInterface\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Package/BasePackage.php - - - - message: "#^Method Composer\\\\Package\\\\Comparer\\\\Comparer\\:\\:getChanged\\(\\) should return array\\{changed\\?\\: array\\, removed\\?\\: array\\, added\\?\\: array\\\\}\\|string\\|false but returns \\(non\\-empty\\-array\\\\>\\)\\|string\\.$#" - count: 1 - path: ../src/Composer/Package/Comparer/Comparer.php - - - - message: "#^Only booleans are allowed in &&, int\\<0, max\\>\\|false given on the right side\\.$#" - count: 1 - path: ../src/Composer/Package/Comparer/Comparer.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\\\>\\|false given\\.$#" - count: 1 - path: ../src/Composer/Package/Comparer/Comparer.php - - - - message: "#^Only booleans are allowed in a negated boolean, int given\\.$#" - count: 1 - path: ../src/Composer/Package/Comparer/Comparer.php - - - - message: "#^Only booleans are allowed in a negated boolean, int\\<0, max\\> given\\.$#" - count: 1 - path: ../src/Composer/Package/Comparer/Comparer.php - - - - message: "#^Only booleans are allowed in an if condition, resource\\|false given\\.$#" - count: 1 - path: ../src/Composer/Package/Comparer/Comparer.php - - - - message: "#^Parameter \\#1 \\$directory of function chdir expects string, string\\|false given\\.$#" - count: 2 - path: ../src/Composer/Package/Comparer/Comparer.php - - - - message: "#^PHPDoc type Composer\\\\Package\\\\CompletePackage of property Composer\\\\Package\\\\CompleteAliasPackage\\:\\:\\$aliasOf is not the same as PHPDoc type Composer\\\\Package\\\\BasePackage of overridden property Composer\\\\Package\\\\AliasPackage\\:\\:\\$aliasOf\\.$#" - count: 1 - path: ../src/Composer/Package/CompleteAliasPackage.php - - - - message: "#^Only booleans are allowed in an if condition, DateTime\\|null given\\.$#" - count: 1 - path: ../src/Composer/Package/Dumper/ArrayDumper.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\>\\|null given\\.$#" - count: 2 - path: ../src/Composer/Package/Dumper/ArrayDumper.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Package/Dumper/ArrayDumper.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Package/Dumper/ArrayDumper.php - - - - message: "#^Only booleans are allowed in an if condition, string given\\.$#" - count: 1 - path: ../src/Composer/Package/Dumper/ArrayDumper.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 4 - path: ../src/Composer/Package/Dumper/ArrayDumper.php - - - - message: "#^Parameter \\#1 \\$array of function ksort expects array, array\\\\|string given\\.$#" - count: 1 - path: ../src/Composer/Package/Dumper/ArrayDumper.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Package/Dumper/ArrayDumper.php - - - - message: "#^Variable method call on Composer\\\\Package\\\\PackageInterface\\.$#" - count: 2 - path: ../src/Composer/Package/Dumper/ArrayDumper.php - - - - message: "#^Call to function is_string\\(\\) with string will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ArrayLoader.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 10 - path: ../src/Composer/Package/Loader/ArrayLoader.php - - - - message: "#^Instanceof between Composer\\\\Package\\\\CompletePackage and Composer\\\\Package\\\\CompletePackage will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ArrayLoader.php - - - - message: "#^Instanceof between Composer\\\\Package\\\\CompletePackage and Composer\\\\Package\\\\CompletePackageInterface will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ArrayLoader.php - - - - message: "#^Method Composer\\\\Package\\\\Loader\\\\ArrayLoader\\:\\:createObject\\(\\) should return Composer\\\\Package\\\\CompletePackage but returns PackageClass of Composer\\\\Package\\\\CompletePackageInterface\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ArrayLoader.php - - - - message: "#^Only booleans are allowed in &&, string\\|false given on the left side\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ArrayLoader.php - - - - message: "#^Only booleans are allowed in &&, string\\|false given on the right side\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ArrayLoader.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Package\\\\Version\\\\VersionParser\\|null given\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ArrayLoader.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ArrayLoader.php - - - - message: "#^Variable method call on Composer\\\\Package\\\\CompletePackage\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ArrayLoader.php - - - - message: "#^Variable method call on Composer\\\\Package\\\\PackageInterface\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ArrayLoader.php - - - - message: "#^Call to function is_string\\(\\) with string will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/JsonLoader.php - - - - message: "#^Parameter \\#1 \\$json of static method Composer\\\\Json\\\\JsonFile\\:\\:parseJson\\(\\) expects string\\|null, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/JsonLoader.php - - - - message: "#^Instanceof between Composer\\\\Package\\\\RootPackage and Composer\\\\Package\\\\RootPackage will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/RootPackageLoader.php - - - - message: "#^Only booleans are allowed in an elseif condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/RootPackageLoader.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/RootPackageLoader.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/RootPackageLoader.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Package/Loader/RootPackageLoader.php - - - - message: "#^Parameter \\#1 \\$requires of method Composer\\\\Package\\\\Loader\\\\RootPackageLoader\\:\\:extractAliases\\(\\) expects array\\, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/RootPackageLoader.php - - - - message: "#^Parameter \\#1 \\$requires of static method Composer\\\\Package\\\\Loader\\\\RootPackageLoader\\:\\:extractReferences\\(\\) expects array\\, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/RootPackageLoader.php - - - - message: "#^Parameter \\#1 \\$requires of static method Composer\\\\Package\\\\Loader\\\\RootPackageLoader\\:\\:extractStabilityFlags\\(\\) expects array\\, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/RootPackageLoader.php - - - - message: "#^Parameter \\#2 \\$class \\(class\\-string\\\\) of method Composer\\\\Package\\\\Loader\\\\RootPackageLoader\\:\\:load\\(\\) should be contravariant with parameter \\$class \\(class\\-string\\\\) of method Composer\\\\Package\\\\Loader\\\\ArrayLoader\\:\\:load\\(\\)$#" - count: 1 - path: ../src/Composer/Package/Loader/RootPackageLoader.php - - - - message: "#^Parameter \\#2 \\$class \\(class\\-string\\\\) of method Composer\\\\Package\\\\Loader\\\\RootPackageLoader\\:\\:load\\(\\) should be contravariant with parameter \\$class \\(class\\-string\\\\) of method Composer\\\\Package\\\\Loader\\\\LoaderInterface\\:\\:load\\(\\)$#" - count: 1 - path: ../src/Composer/Package/Loader/RootPackageLoader.php - - - - message: "#^Parameter \\#2 \\$path of method Composer\\\\Package\\\\Version\\\\VersionGuesser\\:\\:guessVersion\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/RootPackageLoader.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Package/Loader/RootPackageLoader.php - - - - message: "#^Variable method call on Composer\\\\Package\\\\RootPackage\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/RootPackageLoader.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php - - - - message: "#^Cannot access offset 'scheme' on array\\{scheme\\?\\: string, host\\?\\: string, port\\?\\: int, user\\?\\: string, pass\\?\\: string, path\\?\\: string, query\\?\\: string, fragment\\?\\: string\\}\\|false\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 19 - path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php - - - - message: "#^Only booleans are allowed in &&, array given on the right side\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php - - - - message: "#^Only booleans are allowed in &&, int given on the left side\\.$#" - count: 2 - path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php - - - - message: "#^Only booleans are allowed in &&, string\\|false given on the left side\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php - - - - message: "#^Only booleans are allowed in &&, string\\|false given on the right side\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php - - - - message: "#^Only booleans are allowed in a negated boolean, DateTime\\|null given\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php - - - - message: "#^Only booleans are allowed in a negated boolean, int\\<0, max\\> given\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#" - count: 2 - path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php - - - - message: "#^Parameter \\#2 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:isMatch\\(\\) expects string, float\\|int\\|string given\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Package/Loader/ValidatingArrayLoader.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Package/Locker.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 5 - path: ../src/Composer/Package/Locker.php - - - - message: "#^Only booleans are allowed in &&, string\\|false given on the left side\\.$#" - count: 1 - path: ../src/Composer/Package/Locker.php - - - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" - count: 2 - path: ../src/Composer/Package/Locker.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, DateTime\\|null given\\.$#" - count: 1 - path: ../src/Composer/Package/Locker.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Package/Locker.php - - - - message: "#^Parameter \\#1 \\$aliasOf of class Composer\\\\Package\\\\CompleteAliasPackage constructor expects Composer\\\\Package\\\\CompletePackage, Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage given\\.$#" - count: 1 - path: ../src/Composer/Package/Locker.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 3 - path: ../src/Composer/Package/Locker.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Package/Package.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Package/Package.php - - - - message: "#^Only booleans are allowed in an elseif condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Package/Package.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\>\\|null given\\.$#" - count: 1 - path: ../src/Composer/Package/Package.php - - - - message: "#^Parameter \\#3 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:replace\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Package/Package.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Package/Package.php - - - - message: "#^PHPDoc type Composer\\\\Package\\\\RootPackage of property Composer\\\\Package\\\\RootAliasPackage\\:\\:\\$aliasOf is not the same as PHPDoc type Composer\\\\Package\\\\CompletePackage of overridden property Composer\\\\Package\\\\CompleteAliasPackage\\:\\:\\$aliasOf\\.$#" - count: 1 - path: ../src/Composer/Package/RootAliasPackage.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 3 - path: ../src/Composer/Package/Version/VersionGuesser.php - - - - message: "#^Offset 'feature_pretty…' does not exist on array\\{version\\: non\\-empty\\-string, commit\\: string\\|null, pretty_version\\: string\\|null, feature_version\\: non\\-empty\\-string, feature_pretty_version\\?\\: string\\|null\\}\\.$#" - count: 1 - path: ../src/Composer/Package/Version/VersionGuesser.php - - - - message: "#^Only booleans are allowed in &&, string given on the left side\\.$#" - count: 2 - path: ../src/Composer/Package/Version/VersionGuesser.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Package/Version/VersionGuesser.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Package/Version/VersionGuesser.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Package/Version/VersionGuesser.php - - - - message: "#^Only booleans are allowed in \\|\\|, int\\<0, max\\>\\|false given on the right side\\.$#" - count: 1 - path: ../src/Composer/Package/Version/VersionGuesser.php - - - - message: "#^Parameter \\#1 \\$haystack of function strpos expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Package/Version/VersionGuesser.php - - - - message: "#^Parameter \\#2 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:isMatch\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Package/Version/VersionGuesser.php - - - - message: "#^Parameter \\#3 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:replace\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Package/Version/VersionGuesser.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Package/Version/VersionGuesser.php - - - - message: "#^Strict comparison using \\!\\=\\= between null and array\\{version\\: string\\|null, commit\\: '', pretty_version\\: string\\|null\\} will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Package/Version/VersionGuesser.php - - - - message: "#^Strict comparison using \\!\\=\\= between null and array\\{version\\: string\\|null, commit\\: string\\|null, pretty_version\\: string\\|null, feature_version\\?\\: string\\|null, feature_pretty_version\\?\\: string\\|null\\} will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Package/Version/VersionGuesser.php - - - - message: "#^Strict comparison using \\!\\=\\= between null and string will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Package/Version/VersionGuesser.php - - - - message: "#^Only booleans are allowed in an if condition, int\\<0, max\\>\\|false given\\.$#" - count: 1 - path: ../src/Composer/Package/Version/VersionParser.php - - - - message: "#^Only booleans are allowed in &&, array\\\\> given on the left side\\.$#" - count: 1 - path: ../src/Composer/Package/Version/VersionSelector.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Package/Version/VersionSelector.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Package/Version/VersionSelector.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Package/Version/VersionSelector.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Repository\\\\PlatformRepository\\|null given\\.$#" - count: 1 - path: ../src/Composer/Package/Version/VersionSelector.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 4 - path: ../src/Composer/Platform/HhvmDetector.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/Platform/Runtime.php - - - - message: "#^Method Composer\\\\Platform\\\\Runtime\\:\\:getExtensionInfo\\(\\) should return string but returns string\\|false\\.$#" - count: 1 - path: ../src/Composer/Platform/Runtime.php - - - - message: "#^Method Composer\\\\Platform\\\\Runtime\\:\\:getExtensionVersion\\(\\) should return string but returns string\\|false\\.$#" - count: 1 - path: ../src/Composer/Platform/Runtime.php - - - - message: "#^Array \\(array\\\\) does not accept object\\.$#" - count: 2 - path: ../src/Composer/Plugin/PluginManager.php - - - - message: "#^Cannot call method getInstallationManager\\(\\) on Composer\\\\Composer\\|null\\.$#" - count: 1 - path: ../src/Composer/Plugin/PluginManager.php - - - - message: "#^Casting to array\\ something that's already array\\\\.$#" - count: 1 - path: ../src/Composer/Plugin/PluginManager.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 3 - path: ../src/Composer/Plugin/PluginManager.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\Repository\\\\InstalledRepositoryInterface\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Plugin/PluginManager.php - - - - message: "#^Only booleans are allowed in &&, string given on the right side\\.$#" - count: 1 - path: ../src/Composer/Plugin/PluginManager.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Semver\\\\Constraint\\\\ConstraintInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Plugin/PluginManager.php - - - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" - count: 1 - path: ../src/Composer/Plugin/PluginManager.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, Composer\\\\Composer\\|null given\\.$#" - count: 1 - path: ../src/Composer/Plugin/PluginManager.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Plugin/PluginManager.php - - - - message: "#^Only booleans are allowed in an if condition, CapabilityClass of Composer\\\\Plugin\\\\Capability\\\\Capability\\|null given\\.$#" - count: 1 - path: ../src/Composer/Plugin/PluginManager.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Package\\\\PackageInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Plugin/PluginManager.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Repository\\\\InstalledRepositoryInterface\\|null given\\.$#" - count: 3 - path: ../src/Composer/Plugin/PluginManager.php - - - - message: "#^Only booleans are allowed in an if condition, int\\|false given\\.$#" - count: 1 - path: ../src/Composer/Plugin/PluginManager.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Plugin/PluginManager.php - - - - message: "#^Parameter \\#1 \\$filename of function file_get_contents expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Plugin/PluginManager.php - - - - message: "#^Parameter \\#1 \\$installer of method Composer\\\\Installer\\\\InstallationManager\\:\\:addInstaller\\(\\) expects Composer\\\\Installer\\\\InstallerInterface, object given\\.$#" - count: 1 - path: ../src/Composer/Plugin/PluginManager.php - - - - message: "#^Parameter \\#1 \\$path of function dirname expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Plugin/PluginManager.php - - - - message: "#^Parameter \\#1 \\$plugin of method Composer\\\\Plugin\\\\PluginManager\\:\\:addPlugin\\(\\) expects Composer\\\\Plugin\\\\PluginInterface, object given\\.$#" - count: 1 - path: ../src/Composer/Plugin/PluginManager.php - - - - message: "#^Parameter \\#3 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:replace\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Plugin/PluginManager.php - - - - message: "#^Property Composer\\\\Plugin\\\\PostFileDownloadEvent\\:\\:\\$fileName \\(string\\) does not accept string\\|null\\.$#" - count: 1 - path: ../src/Composer/Plugin/PostFileDownloadEvent.php - - - - message: "#^Casting to bool something that's already bool\\.$#" - count: 1 - path: ../src/Composer/Question/StrictConfirmationQuestion.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 2 - path: ../src/Composer/Question/StrictConfirmationQuestion.php - - - - message: "#^Casting to array\\ something that's already array\\\\.$#" - count: 1 - path: ../src/Composer/Repository/ArrayRepository.php - - - - message: "#^Method Composer\\\\Repository\\\\ArrayRepository\\:\\:getProviders\\(\\) should return array\\ but returns array\\\\.$#" - count: 1 - path: ../src/Composer/Repository/ArrayRepository.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Semver\\\\Constraint\\\\ConstraintInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/ArrayRepository.php - - - - message: "#^Parameter \\#1 \\$array of function array_splice expects array, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/ArrayRepository.php - - - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/ArrayRepository.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/ArrayRepository.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Package\\\\BasePackage\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/ArtifactRepository.php - - - - message: "#^Parameter \\#1 \\$filename of function sha1_file expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Repository/ArtifactRepository.php - - - - message: "#^Anonymous function uses \\$this assigned to variable \\$repo\\. Use \\$this directly in the function body\\.$#" - count: 3 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Argument of an invalid type array\\\\|null supplied for foreach, only iterables are supported\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Cannot access offset 'path' on array\\{scheme\\?\\: string, host\\?\\: string, port\\?\\: int, user\\?\\: string, pass\\?\\: string, path\\?\\: string, query\\?\\: string, fragment\\?\\: string\\}\\|false\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 24 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Method Composer\\\\Repository\\\\ComposerRepository\\:\\:filterPackages\\(\\) should return array\\\\|Composer\\\\Package\\\\BasePackage\\|null but returns Composer\\\\Package\\\\BasePackage\\|false\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Method Composer\\\\Repository\\\\ComposerRepository\\:\\:findPackage\\(\\) should return Composer\\\\Package\\\\BasePackage\\|null but returns Composer\\\\Package\\\\BasePackage\\|false\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Method Composer\\\\Repository\\\\ComposerRepository\\:\\:findPackage\\(\\) should return Composer\\\\Package\\\\BasePackage\\|null but returns array\\\\|Composer\\\\Package\\\\BasePackage\\|null\\.$#" - count: 2 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Method Composer\\\\Repository\\\\ComposerRepository\\:\\:findPackages\\(\\) should return array\\ but returns array\\\\|Composer\\\\Package\\\\BasePackage\\|null\\.$#" - count: 2 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Method Composer\\\\Repository\\\\ComposerRepository\\:\\:getProviderNames\\(\\) should return array\\ but returns array\\\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Method Composer\\\\Repository\\\\ComposerRepository\\:\\:getProviders\\(\\) should return array\\ but returns array\\\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Method Composer\\\\Repository\\\\ComposerRepository\\:\\:getProviders\\(\\) should return array\\ but returns array\\\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Method Composer\\\\Repository\\\\ComposerRepository\\:\\:loadRootServerFile\\(\\) should return array\\ but returns array\\|true\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Method Composer\\\\Repository\\\\ComposerRepository\\:\\:whatProvides\\(\\) should return array\\ but returns array\\\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\Semver\\\\Constraint\\\\ConstraintInterface\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in &&, int\\<0, max\\> given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in &&, int\\<0, max\\>\\|false given on the left side\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in &&, string given on the left side\\.$#" - count: 2 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in &&, string given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in &&, string\\|false given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" - count: 6 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Semver\\\\Constraint\\\\ConstraintInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in a negated boolean, array given\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" - count: 2 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in an elseif condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\EventDispatcher\\\\EventDispatcher\\|null given\\.$#" - count: 6 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in an if condition, int given\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" - count: 3 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 13 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in \\|\\|, string\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Parameter \\#1 \\$array of function array_keys expects array, array\\\\>\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Parameter \\#1 \\$array of function array_values expects array, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|false given\\.$#" - count: 3 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/ComposerRepository.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, array\\\\> given\\.$#" - count: 3 - path: ../src/Composer/Repository/CompositeRepository.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, array\\\\>\\> given\\.$#" - count: 1 - path: ../src/Composer/Repository/CompositeRepository.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, array\\\\>\\> given\\.$#" - count: 1 - path: ../src/Composer/Repository/CompositeRepository.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, array\\\\> given\\.$#" - count: 1 - path: ../src/Composer/Repository/CompositeRepository.php - - - - message: "#^Cannot call method getDistReference\\(\\) on Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\RootPackageInterface\\|null\\.$#" - count: 2 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Cannot call method getInstallationSource\\(\\) on Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\RootPackageInterface\\|null\\.$#" - count: 2 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Cannot call method getName\\(\\) on Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\RootPackageInterface\\|null\\.$#" - count: 3 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Cannot call method getName\\(\\) on Composer\\\\Package\\\\BasePackage\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Cannot call method getPrettyVersion\\(\\) on Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\RootPackageInterface\\|null\\.$#" - count: 3 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Cannot call method getProvides\\(\\) on Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\RootPackageInterface\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Cannot call method getReplaces\\(\\) on Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\RootPackageInterface\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Cannot call method getSourceReference\\(\\) on Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\RootPackageInterface\\|null\\.$#" - count: 2 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Cannot call method getType\\(\\) on Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\RootPackageInterface\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Cannot call method getVersion\\(\\) on Composer\\\\Package\\\\BasePackage\\|Composer\\\\Package\\\\RootPackageInterface\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Package\\\\RootPackageInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Parameter \\#1 \\$array of method Composer\\\\Repository\\\\FilesystemRepository\\:\\:dumpToPhpCode\\(\\) expects array, array\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Parameter \\#1 \\$data of static method Composer\\\\InstalledVersions\\:\\:reload\\(\\) expects array\\{root\\: array\\{name\\: string, version\\: string, reference\\: string, pretty_version\\: string, aliases\\: array\\, dev\\: bool, install_path\\: string, type\\: string\\}, versions\\: array\\, reference\\?\\: string, replaced\\?\\: array\\, provided\\?\\: array\\, install_path\\?\\: string, \\.\\.\\.\\}\\>\\}, array\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Parameter \\#1 \\$path of function realpath expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Parameter \\#1 \\$path of method Composer\\\\Util\\\\Filesystem\\:\\:normalizePath\\(\\) expects string, string\\|false given\\.$#" - count: 2 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Parameter \\#2 \\$content of method Composer\\\\Util\\\\Filesystem\\:\\:filePutContentsIfModified\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Parameter \\#2 \\$installPaths of method Composer\\\\Repository\\\\FilesystemRepository\\:\\:generateInstalledVersions\\(\\) expects array\\, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 3 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Strict comparison using \\!\\=\\= between null and non\\-empty\\-string will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Repository/FilesystemRepository.php - - - - message: "#^Call to function is_array\\(\\) with array\\ will always evaluate to true\\.$#" - count: 2 - path: ../src/Composer/Repository/FilterRepository.php - - - - message: "#^Call to function is_bool\\(\\) with bool will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Repository/FilterRepository.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Repository/FilterRepository.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/FilterRepository.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Repository/FilterRepository.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Repository/FilterRepository.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/FilterRepository.php - - - - message: "#^Parameter \\#1 \\$pattern of static method Composer\\\\Pcre\\\\Preg\\:\\:isMatch\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/FilterRepository.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 7 - path: ../src/Composer/Repository/InstalledRepository.php - - - - message: "#^Foreach overwrites \\$needle with its value variable\\.$#" - count: 2 - path: ../src/Composer/Repository/InstalledRepository.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\Semver\\\\Constraint\\\\ConstraintInterface\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/InstalledRepository.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, Composer\\\\Package\\\\BasePackage\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/InstalledRepository.php - - - - message: "#^Only booleans are allowed in an if condition, \\(Composer\\\\Package\\\\BasePackage&Composer\\\\Package\\\\RootPackageInterface\\)\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/InstalledRepository.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Package\\\\BasePackage\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/InstalledRepository.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 2 - path: ../src/Composer/Repository/PathRepository.php - - - - message: "#^Offset 'versions' does not exist on array\\{symlink\\?\\: bool, relative\\?\\: bool, versions\\?\\: array\\\\}\\.$#" - count: 1 - path: ../src/Composer/Repository/PathRepository.php - - - - message: "#^Only booleans are allowed in &&, string\\|false given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/PathRepository.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/PathRepository.php - - - - message: "#^Parameter \\#1 \\$json of static method Composer\\\\Json\\\\JsonFile\\:\\:parseJson\\(\\) expects string\\|null, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Repository/PathRepository.php - - - - message: "#^Parameter \\#2 \\$array of function array_map expects array, array\\\\|false given\\.$#" - count: 1 - path: ../src/Composer/Repository/PathRepository.php - - - - message: "#^Composer\\\\Repository\\\\PearRepository\\:\\:__construct\\(\\) does not call parent constructor from Composer\\\\Repository\\\\ArrayRepository\\.$#" - count: 1 - path: ../src/Composer/Repository/PearRepository.php - - - - message: "#^Call to an undefined method object\\:\\:getVersion\\(\\)\\.$#" - count: 1 - path: ../src/Composer/Repository/PlatformRepository.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Repository/PlatformRepository.php - - - - message: "#^Cannot call method getVersion\\(\\) on Composer\\\\Package\\\\BasePackage\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/PlatformRepository.php - - - - message: "#^Only booleans are allowed in &&, mixed given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/PlatformRepository.php - - - - message: "#^Only booleans are allowed in &&, string given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/PlatformRepository.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/Repository/PlatformRepository.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/PlatformRepository.php - - - - message: "#^Parameter \\#1 \\$override of method Composer\\\\Repository\\\\PlatformRepository\\:\\:addOverriddenPackage\\(\\) expects array\\{version\\: string, name\\: string\\}, array\\{name\\: string, version\\: string\\|false\\} given\\.$#" - count: 1 - path: ../src/Composer/Repository/PlatformRepository.php - - - - message: "#^Parameter \\#1 \\$version of method Composer\\\\Semver\\\\VersionParser\\:\\:normalize\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/PlatformRepository.php - - - - message: "#^Parameter \\#2 \\$prettyVersion of method Composer\\\\Repository\\\\PlatformRepository\\:\\:addLibrary\\(\\) expects string, string\\|null given\\.$#" - count: 4 - path: ../src/Composer/Repository/PlatformRepository.php - - - - message: "#^Parameter \\#2 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:isMatch\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/PlatformRepository.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 3 - path: ../src/Composer/Repository/PlatformRepository.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 3 - path: ../src/Composer/Repository/RepositoryFactory.php - - - - message: "#^Method Composer\\\\Repository\\\\RepositoryFactory\\:\\:createRepo\\(\\) should return Composer\\\\Repository\\\\RepositoryInterface but returns Composer\\\\Repository\\\\RepositoryInterface\\|false\\.$#" - count: 1 - path: ../src/Composer/Repository/RepositoryFactory.php - - - - message: "#^Method Composer\\\\Repository\\\\RepositoryFactory\\:\\:generateRepositoryName\\(\\) should return string but returns int\\|string\\.$#" - count: 1 - path: ../src/Composer/Repository/RepositoryFactory.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Config\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/RepositoryFactory.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\IO\\\\IOInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/RepositoryFactory.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Repository\\\\RepositoryManager\\|null given\\.$#" - count: 2 - path: ../src/Composer/Repository/RepositoryFactory.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\IO\\\\IOInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/RepositoryFactory.php - - - - message: "#^Parameter \\#1 \\$str of function strtr expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Repository/RepositoryFactory.php - - - - message: "#^Parameter \\#3 \\$name of method Composer\\\\Repository\\\\RepositoryManager\\:\\:createRepository\\(\\) expects string\\|null, int\\|string given\\.$#" - count: 1 - path: ../src/Composer/Repository/RepositoryFactory.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Package\\\\BasePackage\\|null given\\.$#" - 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 - path: ../src/Composer/Repository/RepositorySet.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, array\\\\> given\\.$#" - count: 1 - path: ../src/Composer/Repository/RepositorySet.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\> given\\.$#" - count: 1 - path: ../src/Composer/Repository/RepositorySet.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/RepositorySet.php - - - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/FossilDriver.php - - - - message: "#^Parameter \\#1 \\$file of method Composer\\\\Util\\\\Filesystem\\:\\:remove\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/FossilDriver.php - - - - message: "#^Parameter \\#1 \\$filename of function is_file expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/FossilDriver.php - - - - message: "#^Call to function array_search\\(\\) requires parameter \\#3 to be set\\.$#" - count: 2 - path: ../src/Composer/Repository/Vcs/GitBitbucketDriver.php - - - - message: "#^Cannot call method read\\(\\) on Composer\\\\Cache\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitBitbucketDriver.php - - - - message: "#^Cannot call method write\\(\\) on Composer\\\\Cache\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitBitbucketDriver.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 5 - path: ../src/Composer/Repository/Vcs/GitBitbucketDriver.php - - - - message: "#^Method Composer\\\\Repository\\\\Vcs\\\\GitBitbucketDriver\\:\\:getSource\\(\\) should return array\\{type\\: string, url\\: string, reference\\: string\\} but returns array\\{type\\: string\\|null, url\\: string, reference\\: string\\}\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitBitbucketDriver.php - - - - message: "#^Only booleans are allowed in &&, string\\|false given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitBitbucketDriver.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Repository\\\\Vcs\\\\VcsDriver\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitBitbucketDriver.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Repository\\\\Vcs\\\\VcsDriver\\|null given\\.$#" - count: 10 - path: ../src/Composer/Repository/Vcs/GitBitbucketDriver.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitBitbucketDriver.php - - - - message: "#^Property Composer\\\\Repository\\\\Vcs\\\\GitBitbucketDriver\\:\\:\\$branches \\(array\\\\) does not accept array\\\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitBitbucketDriver.php - - - - message: "#^Property Composer\\\\Repository\\\\Vcs\\\\GitBitbucketDriver\\:\\:\\$tags \\(array\\\\) does not accept array\\\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitBitbucketDriver.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Repository/Vcs/GitBitbucketDriver.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitDriver.php - - - - message: "#^Only booleans are allowed in &&, string given on the left side\\.$#" - count: 3 - path: ../src/Composer/Repository/Vcs/GitDriver.php - - - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitDriver.php - - - - message: "#^Parameter \\#1 \\$url of static method Composer\\\\Util\\\\Url\\:\\:sanitize\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitDriver.php - - - - message: "#^Property Composer\\\\Repository\\\\Vcs\\\\GitDriver\\:\\:\\$branches \\(array\\\\) does not accept array\\\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitDriver.php - - - - message: "#^Call to function array_search\\(\\) requires parameter \\#3 to be set\\.$#" - count: 2 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Call to function base64_decode\\(\\) requires parameter \\#2 to be set\\.$#" - count: 2 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Cannot call method read\\(\\) on Composer\\\\Cache\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Cannot call method write\\(\\) on Composer\\\\Cache\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 8 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Foreach overwrites \\$key with its key variable\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Only booleans are allowed in &&, array\\\\>\\|false given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Only booleans are allowed in &&, mixed given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Only booleans are allowed in &&, string\\|false given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Only booleans are allowed in a negated boolean, int\\<0, max\\> given\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" - count: 2 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Repository\\\\Vcs\\\\GitDriver\\|null given\\.$#" - count: 8 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Only booleans are allowed in an if condition, array given\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Only booleans are allowed in \\|\\|, int\\<0, max\\> given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Parameter \\#1 \\$headers of method Composer\\\\Util\\\\GitHub\\:\\:getRateLimit\\(\\) expects array\\, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Property Composer\\\\Repository\\\\Vcs\\\\GitHubDriver\\:\\:\\$tags \\(array\\\\) does not accept array\\\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Repository/Vcs/GitHubDriver.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 5 - path: ../src/Composer/Repository/Vcs/GitLabDriver.php - - - - message: "#^Cannot call method read\\(\\) on Composer\\\\Cache\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitLabDriver.php - - - - message: "#^Cannot call method write\\(\\) on Composer\\\\Cache\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitLabDriver.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 7 - path: ../src/Composer/Repository/Vcs/GitLabDriver.php - - - - message: "#^Only booleans are allowed in &&, mixed given on the left side\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitLabDriver.php - - - - message: "#^Only booleans are allowed in &&, string given on the left side\\.$#" - count: 2 - path: ../src/Composer/Repository/Vcs/GitLabDriver.php - - - - message: "#^Only booleans are allowed in &&, string\\|false given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitLabDriver.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 2 - path: ../src/Composer/Repository/Vcs/GitLabDriver.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Repository\\\\Vcs\\\\GitDriver\\|null given\\.$#" - count: 8 - path: ../src/Composer/Repository/Vcs/GitLabDriver.php - - - - message: "#^Only booleans are allowed in an if condition, mixed given\\.$#" - count: 2 - path: ../src/Composer/Repository/Vcs/GitLabDriver.php - - - - message: "#^Only booleans are allowed in an if condition, string given\\.$#" - count: 3 - path: ../src/Composer/Repository/Vcs/GitLabDriver.php - - - - message: "#^Parameter \\#1 \\$haystack of function strpos expects string, string\\|false given\\.$#" - count: 2 - path: ../src/Composer/Repository/Vcs/GitLabDriver.php - - - - message: "#^Parameter \\#2 \\$string of function explode expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitLabDriver.php - - - - message: "#^Property Composer\\\\Repository\\\\Vcs\\\\VcsDriver\\:\\:\\$originUrl \\(string\\) does not accept string\\|false\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/GitLabDriver.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Repository/Vcs/GitLabDriver.php - - - - message: "#^Only booleans are allowed in &&, string given on the left side\\.$#" - count: 3 - path: ../src/Composer/Repository/Vcs/HgDriver.php - - - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/HgDriver.php - - - - message: "#^Property Composer\\\\Repository\\\\Vcs\\\\HgDriver\\:\\:\\$branches \\(array\\\\) does not accept array\\\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/HgDriver.php - - - - message: "#^Property Composer\\\\Repository\\\\Vcs\\\\HgDriver\\:\\:\\$tags \\(array\\\\) does not accept array\\\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/HgDriver.php - - - - message: "#^Cannot call method checkStream\\(\\) on Composer\\\\Util\\\\Perforce\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/PerforceDriver.php - - - - message: "#^Cannot call method cleanupClientSpec\\(\\) on Composer\\\\Util\\\\Perforce\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/PerforceDriver.php - - - - message: "#^Cannot call method connectClient\\(\\) on Composer\\\\Util\\\\Perforce\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/PerforceDriver.php - - - - message: "#^Cannot call method getBranches\\(\\) on Composer\\\\Util\\\\Perforce\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/PerforceDriver.php - - - - message: "#^Cannot call method getComposerInformation\\(\\) on Composer\\\\Util\\\\Perforce\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/PerforceDriver.php - - - - message: "#^Cannot call method getFileContent\\(\\) on Composer\\\\Util\\\\Perforce\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/PerforceDriver.php - - - - message: "#^Cannot call method getTags\\(\\) on Composer\\\\Util\\\\Perforce\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/PerforceDriver.php - - - - message: "#^Cannot call method getUser\\(\\) on Composer\\\\Util\\\\Perforce\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/PerforceDriver.php - - - - message: "#^Cannot call method p4Login\\(\\) on Composer\\\\Util\\\\Perforce\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/PerforceDriver.php - - - - message: "#^Cannot call method writeP4ClientSpec\\(\\) on Composer\\\\Util\\\\Perforce\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/PerforceDriver.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 3 - path: ../src/Composer/Repository/Vcs/PerforceDriver.php - - - - message: "#^Cannot call method read\\(\\) on Composer\\\\Cache\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/SvnDriver.php - - - - message: "#^Cannot call method write\\(\\) on Composer\\\\Cache\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/SvnDriver.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 2 - path: ../src/Composer/Repository/Vcs/SvnDriver.php - - - - message: "#^Method Composer\\\\Repository\\\\Vcs\\\\SvnDriver\\:\\:getRootIdentifier\\(\\) should return string but returns string\\|false\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/SvnDriver.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\Cache\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/SvnDriver.php - - - - message: "#^Only booleans are allowed in &&, string given on the left side\\.$#" - count: 4 - path: ../src/Composer/Repository/Vcs/SvnDriver.php - - - - message: "#^Only booleans are allowed in &&, string\\|false given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/SvnDriver.php - - - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/SvnDriver.php - - - - message: "#^Only booleans are allowed in an if condition, string given\\.$#" - count: 3 - path: ../src/Composer/Repository/Vcs/SvnDriver.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/Vcs/SvnDriver.php - - - - message: "#^Strict comparison using \\!\\=\\= between string and false will always evaluate to true\\.$#" - count: 2 - path: ../src/Composer/Repository/Vcs/SvnDriver.php - - - - message: "#^Cannot call method read\\(\\) on Composer\\\\Cache\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/VcsDriver.php - - - - message: "#^Cannot call method write\\(\\) on Composer\\\\Cache\\|null\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/VcsDriver.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/VcsDriver.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\Cache\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/VcsDriver.php - - - - message: "#^Only booleans are allowed in &&, DateTime\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/VcsDriver.php - - - - message: "#^Only booleans are allowed in &&, string\\|false given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/VcsDriver.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/Vcs/VcsDriver.php - - - - message: "#^Call to function array_search\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Repository/VcsRepository.php - - - - message: "#^Cannot call method load\\(\\) on Composer\\\\Package\\\\Loader\\\\LoaderInterface\\|null\\.$#" - count: 3 - path: ../src/Composer/Repository/VcsRepository.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/Repository/VcsRepository.php - - - - message: "#^Only booleans are allowed in &&, array\\ given on the right side\\.$#" - count: 1 - path: ../src/Composer/Repository/VcsRepository.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Package\\\\Loader\\\\LoaderInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/VcsRepository.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Repository\\\\Vcs\\\\VcsDriverInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/VcsRepository.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Repository\\\\VersionCacheInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/VcsRepository.php - - - - message: "#^Only booleans are allowed in a negated boolean, array given\\.$#" - count: 2 - path: ../src/Composer/Repository/VcsRepository.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Repository/VcsRepository.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#" - count: 3 - path: ../src/Composer/Repository/VcsRepository.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Package\\\\BasePackage\\|null given\\.$#" - count: 2 - path: ../src/Composer/Repository/VcsRepository.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\|false\\|null given\\.$#" - count: 2 - path: ../src/Composer/Repository/VcsRepository.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Repository\\\\Vcs\\\\VcsDriverInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/VcsRepository.php - - - - message: "#^Only booleans are allowed in an if condition, array\\|null given\\.$#" - count: 2 - path: ../src/Composer/Repository/VcsRepository.php - - - - message: "#^Parameter \\#1 \\$object of function get_class expects object, Composer\\\\Repository\\\\Vcs\\\\VcsDriverInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Repository/VcsRepository.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 7 - path: ../src/Composer/Repository/VcsRepository.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\EventDispatcher\\\\Event\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/Script/Event.php - - - - message: "#^Parameter \\#2 \\$args of method Composer\\\\EventDispatcher\\\\Event\\:\\:__construct\\(\\) expects array\\, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Script/Event.php - - - - message: "#^Parameter \\#3 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:replace\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/SelfUpdate/Keys.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\\\>\\> given\\.$#" - count: 1 - path: ../src/Composer/SelfUpdate/Versions.php - - - - message: "#^Only booleans are allowed in an if condition, string given\\.$#" - count: 1 - path: ../src/Composer/SelfUpdate/Versions.php - - - - message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/SelfUpdate/Versions.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/SelfUpdate/Versions.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Util/AuthHelper.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/Util/AuthHelper.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Util/AuthHelper.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Config\\\\ConfigSourceInterface\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/AuthHelper.php - - - - message: "#^Parameter \\#1 \\$haystack of function strpos expects string, string\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/AuthHelper.php - - - - message: "#^Parameter \\#1 \\$scheme of method Composer\\\\Util\\\\GitLab\\:\\:authorizeOAuthInteractively\\(\\) expects string, string\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/AuthHelper.php - - - - message: "#^Parameter \\#2 \\$consumerKey of method Composer\\\\Util\\\\Bitbucket\\:\\:requestToken\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/AuthHelper.php - - - - message: "#^Parameter \\#2 \\$string of function explode expects string, string\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/AuthHelper.php - - - - message: "#^Parameter \\#2 \\$username of method Composer\\\\IO\\\\IOInterface\\:\\:setAuthentication\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/AuthHelper.php - - - - message: "#^Parameter \\#3 \\$consumerSecret of method Composer\\\\Util\\\\Bitbucket\\:\\:requestToken\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/AuthHelper.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Util/Bitbucket.php - - - - message: "#^Offset 'access_token' does not exist on array\\{access_token\\: string, expires_in\\?\\: int\\}\\|null\\.$#" - count: 1 - path: ../src/Composer/Util/Bitbucket.php - - - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" - count: 2 - path: ../src/Composer/Util/Bitbucket.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Bitbucket.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Util/Bitbucket.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/ComposerMirror.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 4 - path: ../src/Composer/Util/ConfigValidator.php - - - - message: "#^Only booleans are allowed in &&, array\\\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Util/ConfigValidator.php - - - - message: "#^Only booleans are allowed in &&, int given on the left side\\.$#" - count: 1 - path: ../src/Composer/Util/ConfigValidator.php - - - - message: "#^Only booleans are allowed in a negated boolean, int given\\.$#" - count: 1 - path: ../src/Composer/Util/ErrorHandler.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\IO\\\\IOInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/ErrorHandler.php - - - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 1 - path: ../src/Composer/Util/Filesystem.php - - - - message: "#^Cannot call method getPathname\\(\\) on SplFileInfo\\|string\\.$#" - count: 1 - path: ../src/Composer/Util/Filesystem.php - - - - message: "#^Cannot call method isDir\\(\\) on SplFileInfo\\|string\\.$#" - count: 1 - path: ../src/Composer/Util/Filesystem.php - - - - message: "#^Casting to string something that's already string\\.$#" - count: 2 - path: ../src/Composer/Util/Filesystem.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/Util/Filesystem.php - - - - message: "#^Method Composer\\\\Util\\\\Filesystem\\:\\:size\\(\\) should return int but returns int\\<0, max\\>\\|false\\.$#" - count: 1 - path: ../src/Composer/Util/Filesystem.php - - - - message: "#^Offset 'message' does not exist on array\\{type\\: int, message\\: string, file\\: string, line\\: int\\}\\|null\\.$#" - count: 2 - path: ../src/Composer/Util/Filesystem.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Util\\\\ProcessExecutor\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Filesystem.php - - - - message: "#^Only booleans are allowed in a negated boolean, int\\<0, max\\> given\\.$#" - count: 1 - path: ../src/Composer/Util/Filesystem.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/Filesystem.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, array\\\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/Filesystem.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, int\\<0, max\\> given\\.$#" - count: 1 - path: ../src/Composer/Util/Filesystem.php - - - - message: "#^Only numeric types are allowed in \\+, bool given on the right side\\.$#" - count: 1 - path: ../src/Composer/Util/Filesystem.php - - - - message: "#^Parameter \\#1 \\$directory of function chdir expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/Filesystem.php - - - - message: "#^Parameter \\#1 \\$from of function stream_copy_to_stream expects resource, resource\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/Filesystem.php - - - - message: "#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#" - count: 4 - path: ../src/Composer/Util/Filesystem.php - - - - message: "#^Parameter \\#1 \\$stream of function feof expects resource, resource\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/Filesystem.php - - - - message: "#^Parameter \\#1 \\$stream of function fread expects resource, resource\\|false given\\.$#" - count: 2 - path: ../src/Composer/Util/Filesystem.php - - - - message: "#^Parameter \\#2 \\$to of function stream_copy_to_stream expects resource, resource\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/Filesystem.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Util/Filesystem.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Util/Git.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/Util/Git.php - - - - message: "#^Only booleans are allowed in &&, string given on the right side\\.$#" - count: 1 - path: ../src/Composer/Util/Git.php - - - - message: "#^Only booleans are allowed in &&, string\\|false given on the left side\\.$#" - count: 1 - path: ../src/Composer/Util/Git.php - - - - message: "#^Only booleans are allowed in &&, string\\|false given on the right side\\.$#" - count: 1 - path: ../src/Composer/Util/Git.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Util/Git.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Git.php - - - - message: "#^Only booleans are allowed in an if condition, int\\<0, max\\>\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/Git.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" - count: 2 - path: ../src/Composer/Util/Git.php - - - - message: "#^Parameter \\#1 \\$haystack of function strpos expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/Git.php - - - - message: "#^Parameter \\#1 \\$string of function rawurlencode expects string, string\\|null given\\.$#" - count: 17 - path: ../src/Composer/Util/Git.php - - - - message: "#^Parameter \\#2 \\$consumerKey of method Composer\\\\Util\\\\Bitbucket\\:\\:requestToken\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Git.php - - - - message: "#^Parameter \\#2 \\$username of method Composer\\\\IO\\\\IOInterface\\:\\:setAuthentication\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Git.php - - - - message: "#^Parameter \\#3 \\$consumerSecret of method Composer\\\\Util\\\\Bitbucket\\:\\:requestToken\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Git.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 2 - path: ../src/Composer/Util/GitHub.php - - - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" - count: 1 - path: ../src/Composer/Util/GitHub.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/GitHub.php - - - - message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/GitHub.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Util/GitHub.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Util/GitLab.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/GitLab.php - - - - message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/GitLab.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Util/GitLab.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/Util/Hg.php - - - - message: "#^Parameter \\#1 \\$string of function rawurlencode expects string, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Util/Hg.php - - - - message: "#^Array \\(array\\\\) does not accept array\\{url\\: string, origin\\: string, attributes\\: non\\-empty\\-array\\, options\\: array, progress\\: array, curlHandle\\: CurlHandle, filename\\: string\\|null, headerHandle\\: resource\\|false, \\.\\.\\.\\}\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Call to function is_resource\\(\\) with resource will always evaluate to true\\.$#" - count: 4 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Cannot access offset 'features' on array\\|false\\.$#" - count: 2 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 3 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Method Composer\\\\Util\\\\Http\\\\CurlDownloader\\:\\:isAuthenticatedRetryNeeded\\(\\) should return array\\{retry\\: bool, storeAuth\\: bool\\|string\\} but returns array\\{retry\\: bool, storeAuth\\: bool\\|string\\}\\|null\\.$#" - count: 2 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Offset 'retry' does not exist on array\\{retry\\: bool, storeAuth\\: bool\\|string\\}\\|null\\.$#" - count: 2 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\Util\\\\Http\\\\CurlResponse\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Only booleans are allowed in &&, array\\\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Only booleans are allowed in &&, int given on the right side\\.$#" - count: 2 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Only booleans are allowed in &&, mixed given on the right side\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\\\> given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Only booleans are allowed in a negated boolean, resource\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Only booleans are allowed in an elseif condition, string\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Only booleans are allowed in an if condition, string given\\.$#" - count: 2 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" - count: 7 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Only booleans are allowed in \\|\\|, string given on the right side\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#1 \\$handle of function curl_close expects CurlHandle, resource given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#1 \\$handle of function curl_getinfo expects CurlHandle, resource given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#1 \\$haystack of function strpos expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#1 \\$multi_handle of function curl_multi_add_handle expects CurlMultiHandle, resource\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#1 \\$multi_handle of function curl_multi_exec expects CurlMultiHandle, resource\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#1 \\$multi_handle of function curl_multi_info_read expects CurlMultiHandle, resource\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#1 \\$multi_handle of function curl_multi_remove_handle expects CurlMultiHandle, resource\\|null given\\.$#" - count: 2 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#1 \\$multi_handle of function curl_multi_select expects CurlMultiHandle, resource\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#1 \\$str of function preg_quote expects string, string\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#1 \\$string of function rtrim expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#1 \\$string of function strlen expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#1 \\$string of function strtolower expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#1 \\$string of function substr expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#2 \\$handle of function curl_multi_remove_handle expects CurlHandle, resource given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#2 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:isMatch\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#3 \\$attributes of method Composer\\\\Util\\\\Http\\\\CurlDownloader\\:\\:restartJob\\(\\) expects array\\{retryAuthFailure\\?\\: bool, redirects\\?\\: int, storeAuth\\?\\: bool\\}, array\\{storeAuth\\: bool\\|string\\} given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#3 \\$errorMessage of method Composer\\\\Util\\\\Http\\\\CurlDownloader\\:\\:failResponse\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#4 \\$body of class Composer\\\\Util\\\\Http\\\\CurlResponse constructor expects string\\|null, string\\|false given\\.$#" - count: 2 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#6 \\$copyTo of method Composer\\\\Util\\\\Http\\\\CurlDownloader\\:\\:initDownload\\(\\) expects string\\|null, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Parameter \\#7 \\$attributes of method Composer\\\\Util\\\\Http\\\\CurlDownloader\\:\\:initDownload\\(\\) expects array\\{retryAuthFailure\\?\\: bool, redirects\\?\\: int, retries\\?\\: int, storeAuth\\?\\: bool\\}, non\\-empty\\-array\\ given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Property Composer\\\\Util\\\\Http\\\\CurlDownloader\\:\\:\\$multiHandle \\(resource\\|null\\) does not accept CurlMultiHandle\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Property Composer\\\\Util\\\\Http\\\\CurlDownloader\\:\\:\\$shareHandle \\(resource\\|null\\) does not accept CurlShareHandle\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Util/Http/CurlDownloader.php - - - - message: "#^Cannot access offset 'host' on array\\{scheme\\?\\: string, host\\?\\: string, port\\?\\: int, user\\?\\: string, pass\\?\\: string, path\\?\\: string, query\\?\\: string, fragment\\?\\: string\\}\\|false\\.$#" - count: 1 - path: ../src/Composer/Util/Http/ProxyHelper.php - - - - message: "#^Cannot access offset 'user' on array\\{scheme\\?\\: string, host\\?\\: string, port\\?\\: int, user\\?\\: string, pass\\?\\: string, path\\?\\: string, query\\?\\: string, fragment\\?\\: string\\}\\|false\\.$#" - count: 1 - path: ../src/Composer/Util/Http/ProxyHelper.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/Util/Http/ProxyHelper.php - - - - message: "#^Foreach overwrites \\$name with its value variable\\.$#" - count: 1 - path: ../src/Composer/Util/Http/ProxyHelper.php - - - - message: "#^Implicit array creation is not allowed \\- variable \\$options does not exist\\.$#" - count: 1 - path: ../src/Composer/Util/Http/ProxyHelper.php - - - - message: "#^Only booleans are allowed in a negated boolean, int\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/ProxyHelper.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 3 - path: ../src/Composer/Util/Http/ProxyHelper.php - - - - message: "#^Parameter \\#1 \\$proxy of static method Composer\\\\Util\\\\Http\\\\ProxyHelper\\:\\:formatParsedUrl\\(\\) expects array\\{scheme\\?\\: string, host\\: string, port\\?\\: int, user\\?\\: string, pass\\?\\: string\\}, array\\{scheme\\?\\: string, host\\?\\: string, port\\?\\: int, user\\?\\: string, pass\\?\\: string, path\\?\\: string, query\\?\\: string, fragment\\?\\: string\\}\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/ProxyHelper.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\Util\\\\NoProxyPattern\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Util/Http/ProxyManager.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/Util/Http/ProxyManager.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Util\\\\Http\\\\ProxyManager\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/ProxyManager.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 4 - path: ../src/Composer/Util/Http/ProxyManager.php - - - - message: "#^Parameter \\#3 \\$formattedUrl of class Composer\\\\Util\\\\Http\\\\RequestProxy constructor expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/ProxyManager.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Util/Http/ProxyManager.php - - - - message: "#^Only booleans are allowed in an if condition, string given\\.$#" - count: 1 - path: ../src/Composer/Util/Http/RequestProxy.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Util/Http/RequestProxy.php - - - - message: "#^Casting to int something that's already int\\.$#" - count: 1 - path: ../src/Composer/Util/Http/Response.php - - - - message: "#^Anonymous function uses \\$this assigned to variable \\$downloader\\. Use \\$this directly in the function body\\.$#" - count: 2 - path: ../src/Composer/Util/HttpDownloader.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: "#^Binary operation \"\\.\" between non\\-empty\\-string and non\\-empty\\-array\\\\|non\\-empty\\-string results in an error\\.$#" - count: 1 - path: ../src/Composer/Util/HttpDownloader.php - - - - message: "#^Cannot call method abortRequest\\(\\) on Composer\\\\Util\\\\Http\\\\CurlDownloader\\|null\\.$#" - count: 1 - path: ../src/Composer/Util/HttpDownloader.php - - - - message: "#^Cannot call method copy\\(\\) on Composer\\\\Util\\\\RemoteFilesystem\\|null\\.$#" - count: 1 - path: ../src/Composer/Util/HttpDownloader.php - - - - message: "#^Cannot call method download\\(\\) on Composer\\\\Util\\\\Http\\\\CurlDownloader\\|null\\.$#" - count: 2 - path: ../src/Composer/Util/HttpDownloader.php - - - - message: "#^Cannot call method findStatusCode\\(\\) on Composer\\\\Util\\\\RemoteFilesystem\\|null\\.$#" - count: 2 - path: ../src/Composer/Util/HttpDownloader.php - - - - message: "#^Cannot call method getContents\\(\\) on Composer\\\\Util\\\\RemoteFilesystem\\|null\\.$#" - count: 1 - path: ../src/Composer/Util/HttpDownloader.php - - - - message: "#^Cannot call method getLastHeaders\\(\\) on Composer\\\\Util\\\\RemoteFilesystem\\|null\\.$#" - count: 2 - path: ../src/Composer/Util/HttpDownloader.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 4 - path: ../src/Composer/Util/HttpDownloader.php - - - - message: "#^Offset 'copyTo' does not exist on array\\{url\\: string, options\\?\\: array, copyTo\\?\\: string\\|null\\}\\.$#" - count: 2 - path: ../src/Composer/Util/HttpDownloader.php - - - - message: "#^Offset 'curl_id' on array\\{curl_id\\: int, exception\\: Composer\\\\Downloader\\\\TransportException, id\\: int, origin\\: string, reject\\: mixed, request\\: array\\{url\\: string, options\\?\\: array, copyTo\\?\\: string\\|null\\}, resolve\\: mixed, response\\: Composer\\\\Util\\\\Http\\\\Response, \\.\\.\\.\\} in isset\\(\\) always exists and is not nullable\\.$#" - count: 1 - path: ../src/Composer/Util/HttpDownloader.php - - - - message: "#^Offset 'exception' does not exist on array\\{id\\: int, status\\: 4, request\\: array\\{url\\: string, options\\?\\: array, copyTo\\?\\: string\\|null\\}, sync\\: bool, origin\\: string, resolve\\?\\: callable\\(\\)\\: mixed, reject\\?\\: callable\\(\\)\\: mixed, curl_id\\?\\: int, \\.\\.\\.\\}\\.$#" - count: 1 - path: ../src/Composer/Util/HttpDownloader.php - - - - message: "#^Offset 'options' does not exist on array\\{url\\: string, options\\?\\: array, copyTo\\?\\: string\\|null\\}\\.$#" - count: 5 - path: ../src/Composer/Util/HttpDownloader.php - - - - message: "#^Offset 'reject' does not exist on array\\{id\\: int, status\\: 2, request\\: array\\{url\\: string, options\\?\\: array, copyTo\\?\\: string\\|null\\}, sync\\: bool, origin\\: string, resolve\\?\\: callable\\(\\)\\: mixed, reject\\?\\: callable\\(\\)\\: mixed, curl_id\\?\\: int, \\.\\.\\.\\}\\.$#" - count: 1 - path: ../src/Composer/Util/HttpDownloader.php - - - - message: "#^Offset 'resolve' does not exist on array\\{id\\: int, status\\: 2, request\\: array\\{url\\: string, options\\?\\: array, copyTo\\?\\: string\\|null\\}, sync\\: bool, origin\\: string, resolve\\?\\: callable\\(\\)\\: mixed, reject\\?\\: callable\\(\\)\\: mixed, curl_id\\?\\: int, \\.\\.\\.\\}\\.$#" - count: 1 - path: ../src/Composer/Util/HttpDownloader.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\Util\\\\Http\\\\CurlDownloader\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Util/HttpDownloader.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Util\\\\Http\\\\CurlDownloader\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/HttpDownloader.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Util\\\\Http\\\\CurlDownloader\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/HttpDownloader.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - 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 \\#2 \\$code of class Composer\\\\Util\\\\Http\\\\Response constructor expects int, int\\|null given\\.$#" - count: 2 - 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 - path: ../src/Composer/Util/HttpDownloader.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 3 - path: ../src/Composer/Util/IniHelper.php - - - - message: "#^Only booleans are allowed in &&, Symfony\\\\Component\\\\Console\\\\Helper\\\\ProgressBar\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Util/Loop.php - - - - message: "#^Only booleans are allowed in a negated boolean, int given\\.$#" - count: 1 - path: ../src/Composer/Util/Loop.php - - - - message: "#^Only booleans are allowed in an if condition, Composer\\\\Util\\\\ProcessExecutor\\|null given\\.$#" - count: 3 - path: ../src/Composer/Util/Loop.php - - - - message: "#^Only booleans are allowed in an if condition, Symfony\\\\Component\\\\Console\\\\Helper\\\\ProgressBar\\|null given\\.$#" - count: 2 - path: ../src/Composer/Util/Loop.php - - - - message: "#^Cannot access offset int\\ on array\\|false\\.$#" - count: 6 - path: ../src/Composer/Util/NoProxyPattern.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 2 - path: ../src/Composer/Util/NoProxyPattern.php - - - - message: "#^Method Composer\\\\Util\\\\NoProxyPattern\\:\\:getRule\\(\\) should return stdClass\\|null but returns object\\|null\\.$#" - count: 1 - path: ../src/Composer/Util/NoProxyPattern.php - - - - message: "#^Only booleans are allowed in a negated boolean, bool\\|stdClass given\\.$#" - count: 1 - path: ../src/Composer/Util/NoProxyPattern.php - - - - message: "#^Only booleans are allowed in a negated boolean, stdClass\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/NoProxyPattern.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/NoProxyPattern.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/NoProxyPattern.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, int\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/NoProxyPattern.php - - - - message: "#^Only booleans are allowed in an if condition, float given\\.$#" - count: 1 - path: ../src/Composer/Util/NoProxyPattern.php - - - - message: "#^Only booleans are allowed in an if condition, int\\<\\-7, 7\\> given\\.$#" - count: 1 - path: ../src/Composer/Util/NoProxyPattern.php - - - - message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" - count: 2 - path: ../src/Composer/Util/NoProxyPattern.php - - - - message: "#^Only numeric types are allowed in \\+, int\\<0, max\\>\\|false given on the left side\\.$#" - count: 1 - path: ../src/Composer/Util/NoProxyPattern.php - - - - message: "#^Parameter \\#1 \\$binary of method Composer\\\\Util\\\\NoProxyPattern\\:\\:ipMapTo6\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/NoProxyPattern.php - - - - message: "#^Parameter \\#1 \\$string of function strlen expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/NoProxyPattern.php - - - - message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/NoProxyPattern.php - - - - message: "#^Parameter \\#3 \\$url of method Composer\\\\Util\\\\NoProxyPattern\\:\\:match\\(\\) expects stdClass, stdClass\\|true given\\.$#" - count: 1 - path: ../src/Composer/Util/NoProxyPattern.php - - - - message: "#^Call to function method_exists\\(\\) with 'Symfony\\\\\\\\Component…' and 'fromShellCommandline' will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Util/Perforce.php - - - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" - count: 1 - path: ../src/Composer/Util/Perforce.php - - - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" - count: 1 - path: ../src/Composer/Util/Perforce.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Perforce.php - - - - message: "#^Only booleans are allowed in an if condition, int given\\.$#" - count: 2 - path: ../src/Composer/Util/Perforce.php - - - - message: "#^Parameter \\#1 \\$directory of function chdir expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/Perforce.php - - - - message: "#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#" - count: 2 - path: ../src/Composer/Util/Perforce.php - - - - message: "#^Parameter \\#1 \\$stream of function fwrite expects resource, resource\\|false given\\.$#" - count: 13 - path: ../src/Composer/Util/Perforce.php - - - - message: "#^Parameter \\#1 \\$stream of method Composer\\\\Util\\\\Perforce\\:\\:getStreamWithoutLabel\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Perforce.php - - - - message: "#^Parameter \\#1 \\$string1 of function strcmp expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Perforce.php - - - - message: "#^Parameter \\#2 \\$needle of function strpos expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Perforce.php - - - - message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/Perforce.php - - - - message: "#^Cannot access offset 'dir' on array\\|false\\.$#" - count: 1 - path: ../src/Composer/Util/Platform.php - - - - message: "#^Casting to string something that's already string\\.$#" - count: 1 - path: ../src/Composer/Util/Platform.php - - - - message: "#^Only booleans are allowed in &&, array\\|false given on the left side\\.$#" - count: 1 - path: ../src/Composer/Util/Platform.php - - - - message: "#^Only booleans are allowed in &&, string\\|false given on the right side\\.$#" - count: 1 - path: ../src/Composer/Util/Platform.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/Platform.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, array\\\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/Platform.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Util/Platform.php - - - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 2 - path: ../src/Composer/Util/ProcessExecutor.php - - - - message: "#^Call to function method_exists\\(\\) with 'Symfony\\\\\\\\Component…' and 'fromShellCommandline' will always evaluate to true\\.$#" - count: 2 - path: ../src/Composer/Util/ProcessExecutor.php - - - - message: "#^Method Composer\\\\Util\\\\ProcessExecutor\\:\\:doExecute\\(\\) should return int but returns int\\|null\\.$#" - count: 1 - path: ../src/Composer/Util/ProcessExecutor.php - - - - message: "#^Only booleans are allowed in &&, Composer\\\\IO\\\\IOInterface\\|null given on the left side\\.$#" - count: 2 - path: ../src/Composer/Util/ProcessExecutor.php - - - - message: "#^Only booleans are allowed in &&, string\\|false given on the right side\\.$#" - count: 2 - path: ../src/Composer/Util/ProcessExecutor.php - - - - message: "#^Only booleans are allowed in a negated boolean, int given\\.$#" - count: 1 - path: ../src/Composer/Util/ProcessExecutor.php - - - - message: "#^Parameter \\#1 \\$filename of function is_dir expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/ProcessExecutor.php - - - - message: "#^Parameter \\#2 \\$cwd of static method Symfony\\\\Component\\\\Process\\\\Process\\:\\:fromShellCommandline\\(\\) expects string\\|null, string\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/ProcessExecutor.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../src/Composer/Util/ProcessExecutor.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 10 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Method Composer\\\\Util\\\\RemoteFilesystem\\:\\:copy\\(\\) should return bool but returns bool\\|string\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Method Composer\\\\Util\\\\RemoteFilesystem\\:\\:get\\(\\) should return bool\\|string but returns string\\|true\\|null\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Offset 'retry' does not exist on array\\{retry\\: bool, storeAuth\\: bool\\|string\\}\\|null\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Offset 'storeAuth' does not exist on array\\{retry\\: bool, storeAuth\\: bool\\|string\\}\\|null\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Only booleans are allowed in &&, bool\\|string given on the left side\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Only booleans are allowed in &&, int\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Only booleans are allowed in &&, string given on the left side\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Only booleans are allowed in &&, string\\|false given on the left side\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" - count: 2 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Only booleans are allowed in &&, string\\|null given on the right side\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Only booleans are allowed in an elseif condition, string\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Only booleans are allowed in an if condition, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Only booleans are allowed in an if condition, string given\\.$#" - count: 2 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Parameter \\#1 \\$httpStatus of method Composer\\\\Util\\\\RemoteFilesystem\\:\\:promptAuthAndRetry\\(\\) expects int\\<1, max\\>, int\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Parameter \\#1 \\$originUrl of method Composer\\\\Util\\\\RemoteFilesystem\\:\\:get\\(\\) expects string, string\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Parameter \\#1 \\$result of method Composer\\\\Util\\\\RemoteFilesystem\\:\\:decodeResult\\(\\) expects string\\|false, bool\\|string given\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Parameter \\#1 \\$result of method Composer\\\\Util\\\\RemoteFilesystem\\:\\:decodeResult\\(\\) expects string\\|false, non\\-empty\\-string\\|true given\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Parameter \\#1 \\$str of function preg_quote expects string, string\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Parameter \\#1 \\$str of static method Composer\\\\Util\\\\Platform\\:\\:strlen\\(\\) expects string, string\\|false given\\.$#" - count: 5 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Parameter \\#1 \\$string of function base64_encode expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Parameter \\#1 \\$string of function substr expects string, string\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Parameter \\#2 \\$hostname of static method Composer\\\\Util\\\\TlsHelper\\:\\:checkCertificateHost\\(\\) expects string, string\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Parameter \\#5 \\$length of function file_get_contents expects int\\<0, max\\>\\|null, int given\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Property Composer\\\\Util\\\\RemoteFilesystem\\:\\:\\$scheme \\(string\\) does not accept string\\|false\\|null\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Property Composer\\\\Util\\\\RemoteFilesystem\\:\\:\\$storeAuth \\(bool\\) does not accept bool\\|string\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/Util/Silencer.php - - - - message: "#^Cannot access offset 'version' on array\\|false\\.$#" - count: 1 - path: ../src/Composer/Util/StreamContextFactory.php - - - - message: "#^Method Composer\\\\Util\\\\StreamContextFactory\\:\\:initOptions\\(\\) should return array\\{http\\: array\\{header\\: array\\, proxy\\?\\: string, request_fulluri\\: bool\\}, ssl\\?\\: array\\} but returns array\\.$#" - count: 1 - path: ../src/Composer/Util/StreamContextFactory.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/StreamContextFactory.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/StreamContextFactory.php - - - - message: "#^Only booleans are allowed in an if condition, array given\\.$#" - count: 1 - path: ../src/Composer/Util/StreamContextFactory.php - - - - message: "#^Cannot access offset 'user' on array\\{scheme\\?\\: string, host\\?\\: string, port\\?\\: int, user\\?\\: string, pass\\?\\: string, path\\?\\: string, query\\?\\: string, fragment\\?\\: string\\}\\|false\\.$#" - count: 1 - path: ../src/Composer/Util/Svn.php - - - - message: "#^Casting to bool something that's already \\*NEVER\\*\\.$#" - count: 1 - path: ../src/Composer/Util/Svn.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 2 - path: ../src/Composer/Util/Svn.php - - - - message: "#^Method Composer\\\\Util\\\\Svn\\:\\:execute\\(\\) should return string but returns string\\|null\\.$#" - count: 1 - path: ../src/Composer/Util/Svn.php - - - - message: "#^Method Composer\\\\Util\\\\Svn\\:\\:executeLocal\\(\\) should return string but returns string\\|null\\.$#" - count: 1 - path: ../src/Composer/Util/Svn.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Svn.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Svn.php - - - - message: "#^Parameter \\#2 \\$cwd of method Composer\\\\Util\\\\Svn\\:\\:executeWithAuthRetry\\(\\) expects string, string\\|null given\\.$#" - count: 2 - path: ../src/Composer/Util/Svn.php - - - - message: "#^Parameter \\#4 \\$path of method Composer\\\\Util\\\\Svn\\:\\:executeWithAuthRetry\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Svn.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Util/Svn.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, Composer\\\\Package\\\\PackageInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/SyncHelper.php - - - - message: "#^Only booleans are allowed in an if condition, React\\\\Promise\\\\PromiseInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/SyncHelper.php - - - - message: "#^Parameter \\#2 \\$target of method Composer\\\\Downloader\\\\DownloaderInterface\\:\\:update\\(\\) expects Composer\\\\Package\\\\PackageInterface, Composer\\\\Package\\\\PackageInterface\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/SyncHelper.php - - - - message: "#^Only booleans are allowed in &&, array\\ given on the left side\\.$#" - count: 1 - path: ../src/Composer/Util/Tar.php - - - - message: "#^Call to function base64_decode\\(\\) requires parameter \\#2 to be set\\.$#" - count: 1 - path: ../src/Composer/Util/TlsHelper.php - - - - message: "#^Cannot access offset 'key' on array\\|false\\.$#" - count: 1 - path: ../src/Composer/Util/TlsHelper.php - - - - message: "#^Cannot access offset 'subject' on array\\|false\\.$#" - count: 1 - path: ../src/Composer/Util/TlsHelper.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../src/Composer/Util/TlsHelper.php - - - - message: "#^Only booleans are allowed in &&, \\(callable\\)\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Util/TlsHelper.php - - - - message: "#^Only numeric types are allowed in \\+, int\\<0, max\\>\\|false given on the left side\\.$#" - count: 1 - path: ../src/Composer/Util/TlsHelper.php - - - - message: "#^Only numeric types are allowed in \\-, int\\<0, max\\>\\|false given on the right side\\.$#" - count: 1 - path: ../src/Composer/Util/TlsHelper.php - - - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" - count: 1 - path: ../src/Composer/Util/Url.php - - - - message: "#^Only booleans are allowed in an if condition, int\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/Url.php - - - - message: "#^Method Composer\\\\Util\\\\Zip\\:\\:getComposerJson\\(\\) should return string\\|null but returns string\\|false\\|null\\.$#" - count: 1 - path: ../src/Composer/Util/Zip.php - - - - message: "#^Only booleans are allowed in &&, array\\ given on the left side\\.$#" - count: 1 - path: ../src/Composer/Util/Zip.php - - - - message: "#^Parameter \\#1 \\$haystack of function strpos expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/Zip.php - - - - message: "#^Parameter \\#1 \\$name of method ZipArchive\\:\\:getStream\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/Zip.php - - - - message: "#^Parameter \\#1 \\$path of function dirname expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/Zip.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Autoload\\\\ClassLoader\\|null given\\.$#" - count: 2 - path: ../src/bootstrap.php - - - - message: "#^Call to function method_exists\\(\\) with 'Symfony\\\\\\\\Component…' and 'fromShellCommandline' will always evaluate to true\\.$#" - count: 1 - path: ../tests/Composer/Test/AllFunctionalTest.php - - - - message: "#^Call to method RecursiveDirectoryIterator\\:\\:getSubPathname\\(\\) with incorrect case\\: getSubPathName$#" - count: 1 - path: ../tests/Composer/Test/AllFunctionalTest.php - - - - message: "#^Method Composer\\\\Test\\\\AllFunctionalTest\\:\\:getTestFiles\\(\\) should return array\\\\> but returns array\\\\>\\.$#" - count: 1 - path: ../tests/Composer/Test/AllFunctionalTest.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/AllFunctionalTest.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../tests/Composer/Test/AllFunctionalTest.php - - - - message: "#^Only booleans are allowed in \\|\\|, string given on the right side\\.$#" - count: 1 - path: ../tests/Composer/Test/AllFunctionalTest.php - - - - message: "#^Only numeric types are allowed in \\-, int\\<0, max\\>\\|false given on the left side\\.$#" - count: 3 - path: ../tests/Composer/Test/AllFunctionalTest.php - - - - message: "#^Parameter \\#2 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:split\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/AllFunctionalTest.php - - - - message: "#^Anonymous function uses \\$this assigned to variable \\$that\\. Use \\$this directly in the function body\\.$#" - count: 3 - path: ../tests/Composer/Test/Autoload/AutoloadGeneratorTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\Autoload\\\\AutoloadGeneratorTest\\:\\:assertFileContentEquals\\(\\)\\.$#" - count: 28 - path: ../tests/Composer/Test/Autoload/AutoloadGeneratorTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:ensureDirectoryExistsAndClear\\(\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/Autoload/AutoloadGeneratorTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/Autoload/AutoloadGeneratorTest.php - - - - message: "#^Only booleans are allowed in an if condition, array\\ given\\.$#" - count: 2 - path: ../tests/Composer/Test/Autoload/AutoloadGeneratorTest.php - - - - message: "#^Parameter \\#1 \\$include_path of function set_include_path expects string, string\\|false given\\.$#" - count: 2 - path: ../tests/Composer/Test/Autoload/AutoloadGeneratorTest.php - - - - message: "#^Parameter \\#2 \\$haystack of method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, string\\|false given\\.$#" - count: 8 - path: ../tests/Composer/Test/Autoload/AutoloadGeneratorTest.php - - - - message: "#^Parameter \\#2 \\$haystack of method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringNotContainsString\\(\\) expects string, string\\|false given\\.$#" - count: 3 - path: ../tests/Composer/Test/Autoload/AutoloadGeneratorTest.php - - - - message: "#^Property Composer\\\\Test\\\\Autoload\\\\AutoloadGeneratorTest\\:\\:\\$origDir \\(string\\) does not accept string\\|false\\.$#" - count: 1 - path: ../tests/Composer/Test/Autoload/AutoloadGeneratorTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:ensureDirectoryExistsAndClear\\(\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/Autoload/ClassMapGeneratorTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" - count: 2 - path: ../tests/Composer/Test/Autoload/ClassMapGeneratorTest.php - - - - message: "#^Parameter \\#1 \\$expected of method Composer\\\\Test\\\\Autoload\\\\ClassMapGeneratorTest\\:\\:assertEqualsNormalized\\(\\) expects array\\, array\\ given\\.$#" - count: 3 - path: ../tests/Composer/Test/Autoload/ClassMapGeneratorTest.php - - - - message: "#^Parameter \\#2 \\$actual of method Composer\\\\Test\\\\Autoload\\\\ClassMapGeneratorTest\\:\\:assertEqualsNormalized\\(\\) expects array\\, array\\ given\\.$#" - count: 3 - path: ../tests/Composer/Test/Autoload/ClassMapGeneratorTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/CacheTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/Config/JsonConfigSourceTest.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../tests/Composer/Test/Config/JsonConfigSourceTest.php - - - - message: "#^Only booleans are allowed in an if condition, array\\|null given\\.$#" - count: 1 - path: ../tests/Composer/Test/ConfigTest.php - - - - message: "#^Parameter \\#1 \\$string of function rtrim expects string, string\\|false given\\.$#" - count: 2 - path: ../tests/Composer/Test/ConfigTest.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../tests/Composer/Test/ConfigTest.php - - - - message: "#^Call to an undefined method Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\:\\:setProvides\\(\\)\\.$#" - count: 2 - path: ../tests/Composer/Test/DependencyResolver/DefaultPolicyTest.php - - - - message: "#^Call to an undefined method Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\:\\:setReplaces\\(\\)\\.$#" - count: 3 - path: ../tests/Composer/Test/DependencyResolver/DefaultPolicyTest.php - - - - message: "#^Casting to string something that's already string\\.$#" - count: 3 - path: ../tests/Composer/Test/DependencyResolver/PoolBuilderTest.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 11 - path: ../tests/Composer/Test/DependencyResolver/PoolBuilderTest.php - - - - message: "#^Foreach overwrites \\$section with its key variable\\.$#" - count: 1 - path: ../tests/Composer/Test/DependencyResolver/PoolBuilderTest.php - - - - message: "#^Method Composer\\\\Test\\\\DependencyResolver\\\\PoolBuilderTest\\:\\:getPackageResultSet\\(\\) should return array\\ but returns array\\\\|int\\<1, max\\>\\|string\\>\\.$#" - count: 1 - path: ../tests/Composer/Test/DependencyResolver/PoolBuilderTest.php - - - - message: "#^Only booleans are allowed in &&, mixed given on the right side\\.$#" - count: 2 - path: ../tests/Composer/Test/DependencyResolver/PoolBuilderTest.php - - - - message: "#^Only booleans are allowed in an if condition, int\\|false given\\.$#" - count: 2 - path: ../tests/Composer/Test/DependencyResolver/PoolBuilderTest.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../tests/Composer/Test/DependencyResolver/PoolBuilderTest.php - - - - message: "#^Parameter \\#1 \\$directory of class RecursiveDirectoryIterator constructor expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/DependencyResolver/PoolBuilderTest.php - - - - message: "#^Parameter \\#1 \\$directory of function chdir expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/DependencyResolver/PoolBuilderTest.php - - - - message: "#^Parameter \\#1 \\$filename of function file_get_contents expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/DependencyResolver/PoolBuilderTest.php - - - - message: "#^Parameter \\#2 \\$fixturesDir of method Composer\\\\Test\\\\DependencyResolver\\\\PoolBuilderTest\\:\\:readTestFile\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/DependencyResolver/PoolBuilderTest.php - - - - message: "#^Parameter \\#2 \\$packageIds of method Composer\\\\Test\\\\DependencyResolver\\\\PoolBuilderTest\\:\\:getPackageResultSet\\(\\) expects array\\, array\\ given\\.$#" - count: 2 - path: ../tests/Composer/Test/DependencyResolver/PoolBuilderTest.php - - - - message: "#^Parameter \\#2 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:split\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/DependencyResolver/PoolBuilderTest.php - - - - message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, array\\|string given\\.$#" - count: 2 - path: ../tests/Composer/Test/DependencyResolver/PoolBuilderTest.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 1 - path: ../tests/Composer/Test/DependencyResolver/PoolOptimizerTest.php - - - - message: "#^Foreach overwrites \\$section with its key variable\\.$#" - count: 1 - path: ../tests/Composer/Test/DependencyResolver/PoolOptimizerTest.php - - - - message: "#^Parameter \\#1 \\$directory of class RecursiveDirectoryIterator constructor expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/DependencyResolver/PoolOptimizerTest.php - - - - message: "#^Parameter \\#1 \\$filename of function file_get_contents expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/DependencyResolver/PoolOptimizerTest.php - - - - message: "#^Parameter \\#2 \\$fixturesDir of method Composer\\\\Test\\\\DependencyResolver\\\\PoolOptimizerTest\\:\\:readTestFile\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/DependencyResolver/PoolOptimizerTest.php - - - - message: "#^Parameter \\#2 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:split\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/DependencyResolver/PoolOptimizerTest.php - - - - message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, array\\|string given\\.$#" - count: 2 - path: ../tests/Composer/Test/DependencyResolver/PoolOptimizerTest.php - - - - message: "#^Parameter \\#1 \\$packages of class Composer\\\\DependencyResolver\\\\Pool constructor expects array\\, array\\\\|null given\\.$#" - count: 1 - path: ../tests/Composer/Test/DependencyResolver/PoolTest.php - - - - message: "#^Cannot access offset 'hash' on array\\|false\\.$#" - count: 1 - path: ../tests/Composer/Test/DependencyResolver/RuleTest.php - - - - message: "#^Call to an undefined method Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\:\\:setConflicts\\(\\)\\.$#" - count: 2 - path: ../tests/Composer/Test/DependencyResolver/SolverTest.php - - - - message: "#^Call to an undefined method Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\:\\:setProvides\\(\\)\\.$#" - count: 3 - path: ../tests/Composer/Test/DependencyResolver/SolverTest.php - - - - message: "#^Call to an undefined method Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\:\\:setReplaces\\(\\)\\.$#" - count: 9 - path: ../tests/Composer/Test/DependencyResolver/SolverTest.php - - - - message: "#^Call to an undefined method Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\:\\:setRequires\\(\\)\\.$#" - count: 46 - path: ../tests/Composer/Test/DependencyResolver/SolverTest.php - - - - message: "#^Cannot access property \\$testFlagLearnedPositiveLiteral on Composer\\\\DependencyResolver\\\\Solver\\|null\\.$#" - count: 2 - path: ../tests/Composer/Test/DependencyResolver/SolverTest.php - - - - message: "#^Cannot call method solve\\(\\) on Composer\\\\DependencyResolver\\\\Solver\\|null\\.$#" - count: 8 - path: ../tests/Composer/Test/DependencyResolver/SolverTest.php - - - - message: "#^Parameter \\#1 \\$package of method Composer\\\\Test\\\\TestCase\\:\\:getAliasPackage\\(\\) expects Composer\\\\Package\\\\Package, Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage given\\.$#" - count: 5 - path: ../tests/Composer/Test/DependencyResolver/SolverTest.php - - - - message: "#^Call to an undefined method Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\:\\:setExtra\\(\\)\\.$#" - count: 2 - path: ../tests/Composer/Test/DependencyResolver/TransactionTest.php - - - - message: "#^Call to an undefined method Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\:\\:setProvides\\(\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/DependencyResolver/TransactionTest.php - - - - message: "#^Call to an undefined method Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\:\\:setRequires\\(\\)\\.$#" - count: 3 - path: ../tests/Composer/Test/DependencyResolver/TransactionTest.php - - - - message: "#^Call to an undefined method Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\:\\:setType\\(\\)\\.$#" - count: 2 - path: ../tests/Composer/Test/DependencyResolver/TransactionTest.php - - - - message: "#^Parameter \\#1 \\$package of method Composer\\\\Test\\\\TestCase\\:\\:getAliasPackage\\(\\) expects Composer\\\\Package\\\\Package, Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage given\\.$#" - count: 4 - path: ../tests/Composer/Test/DependencyResolver/TransactionTest.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, int\\<0, max\\>\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/Downloader/ArchiveDownloaderTest.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 1 - path: ../tests/Composer/Test/Downloader/DownloadManagerTest.php - - - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 6 - path: ../tests/Composer/Test/Downloader/FileDownloaderTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" - count: 6 - path: ../tests/Composer/Test/Downloader/FileDownloaderTest.php - - - - message: "#^Parameter \\#1 \\$promises of method Composer\\\\Util\\\\Loop\\:\\:wait\\(\\) expects array\\, array\\ given\\.$#" - count: 5 - path: ../tests/Composer/Test/Downloader/FileDownloaderTest.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 3 - path: ../tests/Composer/Test/Downloader/FileDownloaderTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/Downloader/FossilDownloaderTest.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 4 - path: ../tests/Composer/Test/Downloader/FossilDownloaderTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/Downloader/GitDownloaderTest.php - - - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Config\\|null given\\.$#" - count: 1 - path: ../tests/Composer/Test/Downloader/GitDownloaderTest.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 3 - path: ../tests/Composer/Test/Downloader/GitDownloaderTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/Downloader/HgDownloaderTest.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 4 - path: ../tests/Composer/Test/Downloader/HgDownloaderTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/Downloader/PerforceDownloaderTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/Downloader/XzDownloaderTest.php - - - - message: "#^Parameter \\#1 \\$promises of method Composer\\\\Util\\\\Loop\\:\\:wait\\(\\) expects array\\, array\\ given\\.$#" - count: 1 - path: ../tests/Composer/Test/Downloader/XzDownloaderTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/Downloader/ZipDownloaderTest.php - - - - message: "#^Parameter \\#1 \\$promises of method Composer\\\\Util\\\\Loop\\:\\:wait\\(\\) expects array\\, array\\ given\\.$#" - count: 1 - path: ../tests/Composer/Test/Downloader/ZipDownloaderTest.php - - - - message: "#^Only booleans are allowed in a negated boolean, string\\|false given\\.$#" - count: 2 - path: ../tests/Composer/Test/EventDispatcher/EventDispatcherTest.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/EventDispatcher/EventDispatcherTest.php - - - - message: "#^Parameter \\#1 \\$directory of function chdir expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/EventDispatcher/EventDispatcherTest.php - - - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/EventDispatcher/EventDispatcherTest.php - - - - message: "#^Parameter \\#2 \\$haystack of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringNotContainsString\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/EventDispatcher/EventDispatcherTest.php - - - - message: "#^Call to function is_array\\(\\) with array\\ will always evaluate to true\\.$#" - count: 1 - path: ../tests/Composer/Test/IO/NullIOTest.php - - - - message: """ - #^Call to deprecated method getRawData\\(\\) of class Composer\\\\InstalledVersions\\: - Use getAllRawData\\(\\) instead which returns all datasets for all autoloaders present in the process\\. getRawData only returns the first dataset loaded, which may not be what you expect\\.$# - """ - count: 1 - path: ../tests/Composer/Test/InstalledVersionsTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/InstalledVersionsTest.php - - - - message: "#^Parameter \\#1 \\$path of function realpath expects string, string\\|null given\\.$#" - count: 1 - path: ../tests/Composer/Test/InstalledVersionsTest.php - - - - message: "#^Call to function base64_decode\\(\\) requires parameter \\#2 to be set\\.$#" - count: 1 - path: ../tests/Composer/Test/Installer/BinaryInstallerTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:ensureDirectoryExistsAndClear\\(\\)\\.$#" - count: 3 - path: ../tests/Composer/Test/Installer/BinaryInstallerTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/Installer/BinaryInstallerTest.php - - - - message: "#^Call to method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Composer\\\\\\\\Composer' and Composer\\\\Composer will always evaluate to true\\.$#" - count: 1 - path: ../tests/Composer/Test/Installer/InstallerEventTest.php - - - - message: "#^Call to method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Composer\\\\\\\\IO…' and Composer\\\\IO\\\\IOInterface will always evaluate to true\\.$#" - count: 1 - path: ../tests/Composer/Test/Installer/InstallerEventTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:ensureDirectoryExistsAndClear\\(\\)\\.$#" - count: 2 - path: ../tests/Composer/Test/Installer/LibraryInstallerTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/Installer/LibraryInstallerTest.php - - - - message: "#^Call to an undefined method Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\:\\:setRequires\\(\\)\\.$#" - count: 4 - path: ../tests/Composer/Test/InstallerTest.php - - - - message: "#^Call to function is_array\\(\\) with array\\ will always evaluate to true\\.$#" - count: 1 - path: ../tests/Composer/Test/InstallerTest.php - - - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 9 - path: ../tests/Composer/Test/InstallerTest.php - - - - message: "#^Foreach overwrites \\$section with its key variable\\.$#" - count: 1 - path: ../tests/Composer/Test/InstallerTest.php - - - - message: "#^Only booleans are allowed in &&, array\\|false given on the left side\\.$#" - count: 1 - path: ../tests/Composer/Test/InstallerTest.php - - - - message: "#^Only booleans are allowed in a ternary operator condition, array\\|null given\\.$#" - count: 1 - path: ../tests/Composer/Test/InstallerTest.php - - - - message: "#^Only booleans are allowed in an if condition, array\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/InstallerTest.php - - - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" - count: 2 - path: ../tests/Composer/Test/InstallerTest.php - - - - message: "#^Parameter \\#1 \\$directory of class RecursiveDirectoryIterator constructor expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/InstallerTest.php - - - - message: "#^Parameter \\#1 \\$filename of function file_get_contents expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/InstallerTest.php - - - - message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|false\\|null given\\.$#" - count: 1 - path: ../tests/Composer/Test/InstallerTest.php - - - - message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|null given\\.$#" - count: 1 - path: ../tests/Composer/Test/InstallerTest.php - - - - message: "#^Parameter \\#1 \\$str of function strtr expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/InstallerTest.php - - - - message: "#^Parameter \\#2 \\$fixturesDir of method Composer\\\\Test\\\\InstallerTest\\:\\:readTestFile\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/InstallerTest.php - - - - message: "#^Parameter \\#2 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:split\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/InstallerTest.php - - - - message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, array\\|string given\\.$#" - count: 2 - path: ../tests/Composer/Test/InstallerTest.php - - - - message: "#^Parameter \\#4 \\$composerFileContents of class Composer\\\\Package\\\\Locker constructor expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/InstallerTest.php - - - - message: "#^Property Composer\\\\Test\\\\InstallerTest\\:\\:\\$prevCwd \\(string\\) does not accept string\\|false\\.$#" - count: 1 - path: ../tests/Composer/Test/InstallerTest.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 5 - path: ../tests/Composer/Test/InstallerTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Json\\\\JsonFile\\:\\:encode\\(\\)\\.$#" - count: 4 - path: ../tests/Composer/Test/Json/JsonFileTest.php - - - - message: "#^Parameter \\#1 \\$version1 of function version_compare expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/Json/JsonFileTest.php - - - - message: "#^Parameter \\#1 \\$contents of class Composer\\\\Json\\\\JsonManipulator constructor expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/Json/JsonManipulatorTest.php - - - - message: "#^Parameter \\#1 \\$expectedJson of method PHPUnit\\\\Framework\\\\Assert\\:\\:assertJsonStringEqualsJsonString\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/Json/JsonManipulatorTest.php - - - - message: "#^Parameter \\#1 \\$message of class Composer\\\\Json\\\\JsonValidationException constructor expects string, string\\|null given\\.$#" - count: 1 - path: ../tests/Composer/Test/Json/JsonValidationExceptionTest.php - - - - message: "#^Parameter \\#2 \\$errors of class Composer\\\\Json\\\\JsonValidationException constructor expects array\\, array\\\\|null given\\.$#" - count: 1 - path: ../tests/Composer/Test/Json/JsonValidationExceptionTest.php - - - - message: "#^Property Composer\\\\Test\\\\Mock\\\\HttpDownloaderMock\\:\\:\\$defaultHandler \\(array\\{status\\: int, body\\: string, headers\\: array\\\\}\\) does not accept non\\-empty\\-array\\\\|int\\|string\\>\\.$#" - count: 1 - path: ../tests/Composer/Test/Mock/HttpDownloaderMock.php - - - - message: "#^Property Composer\\\\Test\\\\Mock\\\\HttpDownloaderMock\\:\\:\\$expectations \\(array\\\\}\\>\\|null\\) does not accept array\\\\>\\.$#" - count: 1 - path: ../tests/Composer/Test/Mock/HttpDownloaderMock.php - - - - message: "#^Composer\\\\Test\\\\Mock\\\\InstallationManagerMock\\:\\:__construct\\(\\) does not call parent constructor from Composer\\\\Installer\\\\InstallationManager\\.$#" - count: 1 - path: ../tests/Composer/Test/Mock/InstallationManagerMock.php - - - - message: "#^Variable method call on \\$this\\(Composer\\\\Test\\\\Mock\\\\InstallationManagerMock\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/Mock/InstallationManagerMock.php - - - - message: "#^Only booleans are allowed in an elseif condition, array\\ given\\.$#" - count: 1 - path: ../tests/Composer/Test/Mock/ProcessExecutorMock.php - - - - message: "#^Only booleans are allowed in an if condition, string given\\.$#" - count: 2 - path: ../tests/Composer/Test/Mock/ProcessExecutorMock.php - - - - message: "#^Parameter \\#2 \\$cwd of method Composer\\\\Test\\\\Mock\\\\ProcessExecutorMock\\:\\:doExecute\\(\\) expects string, string\\|null given\\.$#" - count: 4 - path: ../tests/Composer/Test/Mock/ProcessExecutorMock.php - - - - message: "#^Property Composer\\\\Test\\\\Mock\\\\ProcessExecutorMock\\:\\:\\$defaultHandler \\(array\\{return\\: int, stdout\\: string, stderr\\: string\\}\\) does not accept non\\-empty\\-array\\\\.$#" + message: "#^Parameter \\#1 \\$callback of function spl_autoload_register expects \\(callable\\(string\\)\\: void\\)\\|null, array\\{\\$this\\(Composer\\\\Autoload\\\\ClassLoader\\), 'loadClass'\\} given\\.$#" count: 1 - path: ../tests/Composer/Test/Mock/ProcessExecutorMock.php + path: ../src/Composer/Autoload/ClassLoader.php - - message: "#^Property Composer\\\\Test\\\\Mock\\\\ProcessExecutorMock\\:\\:\\$expectations \\(array\\\\|null\\) does not accept array\\\\>\\.$#" - count: 1 - path: ../tests/Composer/Test/Mock/ProcessExecutorMock.php + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\\\|null given\\.$#" + count: 2 + path: ../src/Composer/Command/BaseDependencyCommand.php - - message: "#^Composer\\\\Test\\\\Mock\\\\VersionGuesserMock\\:\\:__construct\\(\\) does not call parent constructor from Composer\\\\Package\\\\Version\\\\VersionGuesser\\.$#" + message: "#^Only booleans are allowed in an if condition, string\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Mock/VersionGuesserMock.php + path: ../src/Composer/Command/ConfigCommand.php - - message: "#^Call to function method_exists\\(\\) with 'Symfony\\\\\\\\Component…' and 'fromShellCommandline' will always evaluate to true\\.$#" - count: 1 - path: ../tests/Composer/Test/Package/Archiver/ArchivableFilesFinderTest.php + message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\{Composer\\\\Config\\\\JsonConfigSource, string\\} given\\.$#" + count: 2 + path: ../src/Composer/Command/ConfigCommand.php - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" + message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Package/Archiver/ArchivableFilesFinderTest.php + path: ../src/Composer/Command/DiagnoseCommand.php - - message: "#^Dynamic call to static method Composer\\\\Factory\\:\\:createConfig\\(\\)\\.$#" + message: "#^Parameter \\#1 \\.\\.\\.\\$arrays of function array_merge expects array, array\\\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Package/Archiver/ArchiveManagerTest.php + path: ../src/Composer/Command/ExecCommand.php - - message: "#^Dynamic call to static method Composer\\\\Factory\\:\\:createHttpDownloader\\(\\)\\.$#" + message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Package/Archiver/ArchiveManagerTest.php - - - - message: "#^Parameter \\#1 \\$directory of function chdir expects string, string\\|false given\\.$#" - count: 8 - path: ../tests/Composer/Test/Package/Archiver/ArchiveManagerTest.php + path: ../src/Composer/Command/InitCommand.php - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" + message: "#^Parameter \\#1 \\$from of function rename expects string, string\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Package/Archiver/ArchiverTest.php + path: ../src/Composer/Command/SelfUpdateCommand.php - - message: "#^Parameter \\#1 \\$url of method Composer\\\\Package\\\\Package\\:\\:setSourceUrl\\(\\) expects string, string\\|false given\\.$#" + message: "#^Parameter \\#1 \\$user_id of function posix_getpwuid expects int, int\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Package/Archiver/ArchiverTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" - count: 2 - path: ../tests/Composer/Test/Package/Archiver/PharArchiverTest.php + path: ../src/Composer/Command/SelfUpdateCommand.php - - message: "#^Parameter \\#1 \\$directory of function chdir expects string, string\\|false given\\.$#" + message: "#^Parameter \\#2 \\$permissions of function chmod expects int, int\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Package/Archiver/PharArchiverTest.php - - - - message: "#^Parameter \\#1 \\$sources of method Composer\\\\Package\\\\Archiver\\\\PharArchiver\\:\\:archive\\(\\) expects string, string\\|null given\\.$#" - count: 2 - path: ../tests/Composer/Test/Package/Archiver/PharArchiverTest.php - - - - message: "#^Parameter \\#3 \\$currentWorkDir of method Composer\\\\Test\\\\Package\\\\Archiver\\\\PharArchiverTest\\:\\:writeFile\\(\\) expects string, string\\|false given\\.$#" - count: 5 - path: ../tests/Composer/Test/Package/Archiver/PharArchiverTest.php + path: ../src/Composer/Command/SelfUpdateCommand.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\\\>\\|string given\\.$#" count: 1 - path: ../tests/Composer/Test/Package/Archiver/ZipArchiverTest.php + path: ../src/Composer/Command/ShowCommand.php - - message: "#^Parameter \\#1 \\$directory of function chdir expects string, string\\|false given\\.$#" + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\|string given\\.$#" count: 1 - path: ../tests/Composer/Test/Package/Archiver/ZipArchiverTest.php + path: ../src/Composer/Command/ShowCommand.php - - message: "#^Parameter \\#1 \\$sources of method Composer\\\\Package\\\\Archiver\\\\ZipArchiver\\:\\:archive\\(\\) expects string, string\\|null given\\.$#" + message: "#^Parameter \\#2 \\$callback of function uasort expects callable\\(string, string\\)\\: int, 'version_compare' given\\.$#" count: 1 - path: ../tests/Composer/Test/Package/Archiver/ZipArchiverTest.php + path: ../src/Composer/Command/ShowCommand.php - - message: "#^Parameter \\#3 \\$currentWorkDir of method Composer\\\\Test\\\\Package\\\\Archiver\\\\ZipArchiverTest\\:\\:writeFile\\(\\) expects string, string\\|false given\\.$#" + message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\{Composer\\\\Package\\\\RootPackageInterface, 'getDevRequires'\\|'getRequires'\\} given\\.$#" count: 1 - path: ../tests/Composer/Test/Package/Archiver/ZipArchiverTest.php + path: ../src/Composer/Command/ValidateCommand.php - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" + message: "#^Parameter \\#1 \\$string of function substr_replace expects array\\|string, string\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Package/BasePackageTest.php + path: ../src/Composer/Compiler.php - - message: "#^Implicit array creation is not allowed \\- variable \\$provider does not exist\\.$#" + message: "#^Parameter \\#1 \\$string of function rtrim expects string, int\\|string\\|null given\\.$#" count: 1 - path: ../tests/Composer/Test/Package/CompletePackageTest.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 - path: ../tests/Composer/Test/Package/Dumper/ArrayDumperTest.php + path: ../src/Composer/Config.php - - message: "#^Call to method PHPUnit\\\\Framework\\\\Assert\\:\\:assertTrue\\(\\) with true will always evaluate to true\\.$#" + message: "#^Parameter \\#1 \\$string of function rtrim expects string, string\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Package/Loader/ValidatingArrayLoaderTest.php - - - - message: "#^Offset 'commit' does not exist on array\\{version\\: string, commit\\: string\\|null, pretty_version\\: string\\|null, feature_version\\?\\: string\\|null, feature_pretty_version\\?\\: string\\|null\\}\\|null\\.$#" - count: 6 - path: ../tests/Composer/Test/Package/Version/VersionGuesserTest.php + path: ../src/Composer/Config.php - - message: "#^Offset 'feature_pretty…' does not exist on array\\{version\\: string, commit\\: string\\|null, pretty_version\\: string\\|null, feature_version\\?\\: string\\|null, feature_pretty_version\\?\\: string\\|null\\}\\|null\\.$#" - count: 2 - path: ../tests/Composer/Test/Package/Version/VersionGuesserTest.php + message: "#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Composer\\\\Json\\\\JsonManipulator, string\\} given\\.$#" + count: 1 + path: ../src/Composer/Config/JsonConfigSource.php - - message: "#^Offset 'feature_version' does not exist on array\\{version\\: string, commit\\: string\\|null, pretty_version\\: string\\|null, feature_version\\?\\: string\\|null, feature_pretty_version\\?\\: string\\|null\\}\\|null\\.$#" + message: "#^Parameter \\#2 \\$callback of function uksort expects callable\\(string, string\\)\\: int, 'version_compare' given\\.$#" count: 2 - path: ../tests/Composer/Test/Package/Version/VersionGuesserTest.php - - - - message: "#^Offset 'pretty_version' does not exist on array\\{version\\: string, commit\\: string\\|null, pretty_version\\: string\\|null, feature_version\\?\\: string\\|null, feature_pretty_version\\?\\: string\\|null\\}\\|null\\.$#" - count: 5 - path: ../tests/Composer/Test/Package/Version/VersionGuesserTest.php - - - - message: "#^Offset 'version' does not exist on array\\{version\\: string, commit\\: string\\|null, pretty_version\\: string\\|null, feature_version\\?\\: string\\|null, feature_pretty_version\\?\\: string\\|null\\}\\|null\\.$#" - count: 14 - path: ../tests/Composer/Test/Package/Version/VersionGuesserTest.php - - - - message: "#^Parameter \\#2 \\$array of method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayNotHasKey\\(\\) expects array\\|ArrayAccess, array\\\\|null given\\.$#" - count: 4 - path: ../tests/Composer/Test/Package/Version/VersionGuesserTest.php + path: ../src/Composer/DependencyResolver/Problem.php - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" + message: "#^Parameter \\#1 \\$string of function trim expects string, array\\\\>\\|string\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Package/Version/VersionSelectorTest.php + path: ../src/Composer/Downloader/FileDownloader.php - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getVersionParser\\(\\)\\.$#" + message: "#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Platform/VersionTest.php + path: ../src/Composer/Downloader/GzipDownloader.php - - message: "#^Only booleans are allowed in a ternary operator condition, string\\|null given\\.$#" + message: "#^Parameter \\#1 \\$stream of function fwrite expects resource, resource\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Platform/VersionTest.php + path: ../src/Composer/Downloader/GzipDownloader.php - - message: "#^Array \\(array\\\\) does not accept Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\.$#" + message: "#^Parameter \\#1 \\$stream of function gzclose expects resource, resource\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Plugin/PluginInstallerTest.php + path: ../src/Composer/Downloader/GzipDownloader.php - - message: "#^Call to method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Composer\\\\\\\\Command…' and Composer\\\\Command\\\\BaseCommand will always evaluate to true\\.$#" + message: "#^Parameter \\#1 \\$stream of function gzread expects resource, resource\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Plugin/PluginInstallerTest.php + path: ../src/Composer/Downloader/GzipDownloader.php - - message: "#^Call to method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Composer\\\\\\\\Plugin…' and Composer\\\\Plugin\\\\Capability\\\\CommandProvider will always evaluate to true\\.$#" + message: "#^Parameter \\#3 \\$length of function fwrite expects int\\<0, max\\>\\|null, int given\\.$#" count: 1 - path: ../tests/Composer/Test/Plugin/PluginInstallerTest.php + path: ../src/Composer/Downloader/GzipDownloader.php - - message: "#^Call to method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Composer\\\\\\\\Plugin…' and Composer\\\\Test\\\\Plugin\\\\Mock\\\\Capability will always evaluate to true\\.$#" + message: "#^Parameter \\#1 \\$string of function rawurldecode expects string, string\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Plugin/PluginInstallerTest.php + path: ../src/Composer/Downloader/VcsDownloader.php - - message: "#^Call to method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Composer\\\\\\\\Test…' and Composer\\\\Test\\\\Plugin\\\\Mock\\\\Capability will always evaluate to true\\.$#" + message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Plugin/PluginInstallerTest.php + path: ../src/Composer/EventDispatcher/EventDispatcher.php - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" + message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Plugin/PluginInstallerTest.php - - - - message: "#^Parameter \\#2 \\$capabilityClassName of method Composer\\\\Plugin\\\\PluginManager\\:\\:getPluginCapability\\(\\) expects class\\-string\\, string given\\.$#" - count: 2 - path: ../tests/Composer/Test/Plugin/PluginInstallerTest.php - - - - message: "#^Unable to resolve the template type CapabilityClass in call to method Composer\\\\Plugin\\\\PluginManager\\:\\:getPluginCapability\\(\\)$#" - count: 2 - path: ../tests/Composer/Test/Plugin/PluginInstallerTest.php + path: ../src/Composer/Factory.php - - message: "#^Instanceof between Symfony\\\\Component\\\\Console\\\\Input\\\\ArrayInput and Symfony\\\\Component\\\\Console\\\\Input\\\\StreamableInputInterface will always evaluate to true\\.$#" + message: "#^Parameter \\#1 \\$stream of function fwrite expects resource, resource\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Question/StrictConfirmationQuestionTest.php + path: ../src/Composer/IO/BufferIO.php - - message: "#^Parameter \\#1 \\$stream of class Symfony\\\\Component\\\\Console\\\\Output\\\\StreamOutput constructor expects resource, resource\\|false given\\.$#" + message: "#^Parameter \\#1 \\$stream of function rewind expects resource, resource\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Question/StrictConfirmationQuestionTest.php + path: ../src/Composer/IO/BufferIO.php - - message: "#^Call to an undefined method Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\:\\:setType\\(\\)\\.$#" + message: "#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/ArrayRepositoryTest.php + path: ../src/Composer/Installer/BinaryInstaller.php - - message: "#^Parameter \\#1 \\$package of method Composer\\\\Test\\\\TestCase\\:\\:getAliasPackage\\(\\) expects Composer\\\\Package\\\\Package, Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage given\\.$#" + message: "#^Parameter \\#1 \\$stream of function fgets expects resource, resource\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/ArrayRepositoryTest.php + path: ../src/Composer/Installer/BinaryInstaller.php - - message: "#^Cannot call method getDistType\\(\\) on Composer\\\\Package\\\\BasePackage\\|null\\.$#" + message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, int\\\\|int\\<2, max\\>\\|string given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/ArtifactRepositoryTest.php - - - - message: "#^Parameter \\#1 \\$haystack of function strpos expects string, string\\|null given\\.$#" - count: 2 - path: ../tests/Composer/Test/Repository/ArtifactRepositoryTest.php - - - - message: "#^Cannot call method getName\\(\\) on Composer\\\\Package\\\\BasePackage\\|null\\.$#" - count: 2 - path: ../tests/Composer/Test/Repository/CompositeRepositoryTest.php + path: ../src/Composer/Installer/InstallationManager.php - - message: "#^Cannot call method getPrettyVersion\\(\\) on Composer\\\\Package\\\\BasePackage\\|null\\.$#" + message: "#^Parameter \\#2 \\$handler of function pcntl_signal expects \\(callable\\(\\)\\: mixed\\)\\|int, int\\|string given\\.$#" count: 2 - path: ../tests/Composer/Test/Repository/CompositeRepositoryTest.php + path: ../src/Composer/Installer/InstallationManager.php - - message: "#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Composer\\\\Repository\\\\CompositeRepository, string\\} given\\.$#" + message: "#^Only numeric types are allowed in \\-, int\\|false given on the left side\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/CompositeRepositoryTest.php + path: ../src/Composer/Package/Archiver/PharArchiver.php - - message: "#^Call to an undefined method Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\:\\:setType\\(\\)\\.$#" + message: "#^Parameter \\#2 \\$baseDirectory of method Phar\\:\\:buildFromIterator\\(\\) expects string\\|null, string\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/FilesystemRepositoryTest.php + path: ../src/Composer/Package/Archiver/PharArchiver.php - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" + message: "#^Parameter \\#1 \\$array of function ksort expects array, array\\\\|string given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/FilesystemRepositoryTest.php - - - - message: "#^Parameter \\#1 \\$package of method Composer\\\\Test\\\\TestCase\\:\\:getAliasPackage\\(\\) expects Composer\\\\Package\\\\Package, Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage given\\.$#" - count: 2 - path: ../tests/Composer/Test/Repository/FilesystemRepositoryTest.php + path: ../src/Composer/Package/Dumper/ArrayDumper.php - - message: "#^Call to an undefined method Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\:\\:setProvides\\(\\)\\.$#" + message: "#^Only booleans are allowed in an if condition, int\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/InstalledRepositoryTest.php + path: ../src/Composer/Plugin/PluginManager.php - - message: "#^Call to an undefined method Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\:\\:setReplaces\\(\\)\\.$#" + message: "#^Parameter \\#1 \\$array of function array_splice expects array, array\\\\|null given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/InstalledRepositoryTest.php - - - - message: "#^Parameter \\#1 \\$path of function realpath expects string, string\\|false given\\.$#" - count: 3 - path: ../tests/Composer/Test/Repository/PathRepositoryTest.php + path: ../src/Composer/Repository/ArrayRepository.php - - message: "#^Parameter \\#1 \\$string of function strlen expects string, string\\|false given\\.$#" + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\\\|null given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/PathRepositoryTest.php + path: ../src/Composer/Repository/ArrayRepository.php - - message: "#^Call to method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Composer\\\\\\\\Repository…' and Composer\\\\Repository\\\\FilterRepository will always evaluate to true\\.$#" + message: "#^Parameter \\#1 \\$array of function array_keys expects array, array\\\\>\\|null given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/RepositoryManagerTest.php + path: ../src/Composer/Repository/ComposerRepository.php - - message: "#^Call to method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Composer\\\\\\\\Repository…' and Composer\\\\Repository\\\\RepositoryInterface will always evaluate to true\\.$#" + message: "#^Parameter \\#1 \\$array of function array_values expects array, array\\\\|null given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/RepositoryManagerTest.php + path: ../src/Composer/Repository/ComposerRepository.php - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" + message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, array\\\\|null given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/RepositoryManagerTest.php + path: ../src/Composer/Repository/ComposerRepository.php - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" + message: "#^Parameter \\#2 \\$string of function explode expects string, string\\|null given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/Vcs/FossilDriverTest.php + path: ../src/Composer/Repository/Vcs/GitLabDriver.php - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" + message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/Vcs/GitBitbucketDriverTest.php + path: ../src/Composer/SelfUpdate/Versions.php - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" + message: "#^Parameter \\#2 \\$string of function explode expects string, string\\|false\\|null given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/Vcs/GitHubDriverTest.php - - - - message: "#^Offset 'reference' does not exist on array\\{type\\: string, url\\: string, reference\\: string, shasum\\: string\\}\\|null\\.$#" - count: 4 - path: ../tests/Composer/Test/Repository/Vcs/GitHubDriverTest.php + path: ../src/Composer/Util/AuthHelper.php - - message: "#^Offset 'type' does not exist on array\\{type\\: string, url\\: string, reference\\: string, shasum\\: string\\}\\|null\\.$#" - count: 4 - path: ../tests/Composer/Test/Repository/Vcs/GitHubDriverTest.php + message: "#^Parameter \\#1 \\$from of function stream_copy_to_stream expects resource, resource\\|false given\\.$#" + count: 1 + path: ../src/Composer/Util/Filesystem.php - - message: "#^Offset 'url' does not exist on array\\{type\\: string, url\\: string, reference\\: string, shasum\\: string\\}\\|null\\.$#" + message: "#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#" count: 4 - path: ../tests/Composer/Test/Repository/Vcs/GitHubDriverTest.php - - - - message: "#^Parameter \\#1 \\$objectOrValue of method ReflectionProperty\\:\\:setValue\\(\\) expects object\\|null, object\\|string given\\.$#" - count: 1 - path: ../tests/Composer/Test/Repository/Vcs/GitHubDriverTest.php + path: ../src/Composer/Util/Filesystem.php - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" + message: "#^Parameter \\#1 \\$stream of function feof expects resource, resource\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/Vcs/GitLabDriverTest.php + path: ../src/Composer/Util/Filesystem.php - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/Repository/Vcs/HgDriverTest.php + message: "#^Parameter \\#1 \\$stream of function fread expects resource, resource\\|false given\\.$#" + count: 2 + path: ../src/Composer/Util/Filesystem.php - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" + message: "#^Parameter \\#2 \\$to of function stream_copy_to_stream expects resource, resource\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/Vcs/PerforceDriverTest.php + path: ../src/Composer/Util/Filesystem.php - - message: "#^Parameter \\#1 \\$repoConfig of class Composer\\\\Repository\\\\Vcs\\\\PerforceDriver constructor expects array\\{url\\: string\\}, array\\ given\\.$#" - count: 1 - path: ../tests/Composer/Test/Repository/Vcs/PerforceDriverTest.php + message: "#^Parameter \\#1 \\$string of function rawurlencode expects string, string\\|null given\\.$#" + count: 17 + path: ../src/Composer/Util/Git.php - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" + message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|null given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/Vcs/SvnDriverTest.php + path: ../src/Composer/Util/GitHub.php - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" + message: "#^Parameter \\#1 \\$string of function rawurlencode expects string, string\\|null given\\.$#" count: 2 - path: ../tests/Composer/Test/Repository/VcsRepositoryTest.php + path: ../src/Composer/Util/Hg.php - - message: "#^Only booleans are allowed in a negated boolean, string given\\.$#" + message: "#^Array \\(array\\\\) does not accept array\\{url\\: string, origin\\: string, attributes\\: non\\-empty\\-array\\, options\\: array, progress\\: array, curlHandle\\: CurlHandle, filename\\: string\\|null, headerHandle\\: resource\\|false, \\.\\.\\.\\}\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/VcsRepositoryTest.php + path: ../src/Composer/Util/Http/CurlDownloader.php - - message: "#^Only booleans are allowed in a negated boolean, string\\|null given\\.$#" + message: "#^Parameter \\#1 \\$handle of function curl_close expects CurlHandle, resource given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/VcsRepositoryTest.php + path: ../src/Composer/Util/Http/CurlDownloader.php - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" + message: "#^Parameter \\#1 \\$handle of function curl_getinfo expects CurlHandle, resource given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/VcsRepositoryTest.php + path: ../src/Composer/Util/Http/CurlDownloader.php - - message: "#^Parameter \\#1 \\$directory of function chdir expects string, string\\|false given\\.$#" + message: "#^Parameter \\#1 \\$haystack of function strpos expects string, string\\|null given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/VcsRepositoryTest.php + path: ../src/Composer/Util/Http/CurlDownloader.php - - message: "#^Parameter \\#3 \\$cwd of method Composer\\\\Util\\\\ProcessExecutor\\:\\:execute\\(\\) expects string\\|null, string\\|false given\\.$#" + message: "#^Parameter \\#1 \\$multi_handle of function curl_multi_add_handle expects CurlMultiHandle, resource\\|null given\\.$#" count: 1 - path: ../tests/Composer/Test/Repository/VcsRepositoryTest.php + path: ../src/Composer/Util/Http/CurlDownloader.php - - message: "#^Method Composer\\\\Test\\\\TestCase\\:\\:getPackage\\(\\) should return Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage but returns PackageClass of Composer\\\\Package\\\\PackageInterface\\.$#" + message: "#^Parameter \\#1 \\$multi_handle of function curl_multi_exec expects CurlMultiHandle, resource\\|null given\\.$#" count: 1 - path: ../tests/Composer/Test/TestCase.php + path: ../src/Composer/Util/Http/CurlDownloader.php - - message: "#^Method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\) should return string but returns string\\|false\\.$#" + message: "#^Parameter \\#1 \\$multi_handle of function curl_multi_info_read expects CurlMultiHandle, resource\\|null given\\.$#" count: 1 - path: ../tests/Composer/Test/TestCase.php + path: ../src/Composer/Util/Http/CurlDownloader.php - - message: "#^Only booleans are allowed in &&, mixed given on the right side\\.$#" - count: 1 - path: ../tests/Composer/Test/TestCase.php + message: "#^Parameter \\#1 \\$multi_handle of function curl_multi_remove_handle expects CurlMultiHandle, resource\\|null given\\.$#" + count: 2 + path: ../src/Composer/Util/Http/CurlDownloader.php - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Semver\\\\VersionParser\\|null given\\.$#" + message: "#^Parameter \\#1 \\$multi_handle of function curl_multi_select expects CurlMultiHandle, resource\\|null given\\.$#" count: 1 - path: ../tests/Composer/Test/TestCase.php + path: ../src/Composer/Util/Http/CurlDownloader.php - - message: "#^Variable method call on Composer\\\\Package\\\\PackageInterface\\.$#" + message: "#^Parameter \\#1 \\$string of function rtrim expects string, string\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/TestCase.php - - - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" - count: 2 - path: ../tests/Composer/Test/Util/FilesystemTest.php - - - - message: "#^Anonymous function uses \\$this assigned to variable \\$that\\. Use \\$this directly in the function body\\.$#" - count: 2 - path: ../tests/Composer/Test/Util/GitTest.php + path: ../src/Composer/Util/Http/CurlDownloader.php - - message: "#^Call to method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Composer\\\\\\\\Util\\\\\\\\Http…' and Composer\\\\Util\\\\Http\\\\ProxyManager will always evaluate to true\\.$#" + message: "#^Parameter \\#1 \\$string of function strtolower expects string, string\\|null given\\.$#" count: 1 - path: ../tests/Composer/Test/Util/Http/ProxyManagerTest.php + path: ../src/Composer/Util/Http/CurlDownloader.php - - message: "#^Call to method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Composer\\\\\\\\Util\\\\\\\\Http…' and Composer\\\\Util\\\\Http\\\\RequestProxy will always evaluate to true\\.$#" + message: "#^Parameter \\#2 \\$handle of function curl_multi_remove_handle expects CurlHandle, resource given\\.$#" count: 1 - path: ../tests/Composer/Test/Util/Http/ProxyManagerTest.php - - - - message: "#^Only booleans are allowed in an if condition, string given\\.$#" - count: 2 - path: ../tests/Composer/Test/Util/Http/ProxyManagerTest.php + path: ../src/Composer/Util/Http/CurlDownloader.php - - message: "#^Parameter \\#1 \\$haystack of function stripos expects string, string\\|null given\\.$#" + message: "#^Property Composer\\\\Util\\\\Http\\\\CurlDownloader\\:\\:\\$multiHandle \\(resource\\|null\\) does not accept CurlMultiHandle\\.$#" count: 1 - path: ../tests/Composer/Test/Util/Http/ProxyManagerTest.php + path: ../src/Composer/Util/Http/CurlDownloader.php - - message: "#^Only booleans are allowed in an if condition, string\\|false\\|null given\\.$#" + message: "#^Property Composer\\\\Util\\\\Http\\\\CurlDownloader\\:\\:\\$shareHandle \\(resource\\|null\\) does not accept CurlShareHandle\\.$#" count: 1 - path: ../tests/Composer/Test/Util/NoProxyPatternTest.php + path: ../src/Composer/Util/Http/CurlDownloader.php - - message: "#^Implicit array creation is not allowed \\- variable \\$packages does not exist\\.$#" + message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Util/PackageSorterTest.php - - - - message: "#^Call to method Composer\\\\Util\\\\Perforce\\:\\:queryP4User\\(\\) with incorrect case\\: queryP4user$#" - count: 6 - path: ../tests/Composer/Test/Util/PerforceTest.php - - - - message: "#^Dynamic call to static method Composer\\\\Util\\\\Perforce\\:\\:checkServerExists\\(\\)\\.$#" - count: 2 - path: ../tests/Composer/Test/Util/PerforceTest.php + path: ../src/Composer/Util/NoProxyPattern.php - - message: "#^Parameter \\#2 \\$string of method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringStartsWith\\(\\) expects string, string\\|false given\\.$#" + message: "#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#" count: 2 - path: ../tests/Composer/Test/Util/PerforceTest.php - - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../tests/Composer/Test/Util/PlatformTest.php + path: ../src/Composer/Util/Perforce.php - - message: "#^Call to method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNotNull\\(\\) with string will always evaluate to true\\.$#" - count: 1 - path: ../tests/Composer/Test/Util/ProcessExecutorTest.php + message: "#^Parameter \\#1 \\$stream of function fwrite expects resource, resource\\|false given\\.$#" + count: 13 + path: ../src/Composer/Util/Perforce.php - - message: "#^Dynamic call to static method Composer\\\\Util\\\\ProcessExecutor\\:\\:getTimeout\\(\\)\\.$#" + message: "#^Parameter \\#1 \\$string1 of function strcmp expects string, string\\|null given\\.$#" count: 1 - path: ../tests/Composer/Test/Util/ProcessExecutorTest.php + path: ../src/Composer/Util/Perforce.php - - message: "#^Call to method PHPUnit\\\\Framework\\\\Assert\\:\\:assertTrue\\(\\) with true and 'callbackGet must…' will always evaluate to true\\.$#" + message: "#^Parameter \\#2 \\$needle of function strpos expects string, string\\|null given\\.$#" count: 1 - path: ../tests/Composer/Test/Util/RemoteFilesystemTest.php + path: ../src/Composer/Util/Perforce.php - - message: "#^Parameter \\#1 \\$object of method ReflectionProperty\\:\\:getValue\\(\\) expects object\\|null, object\\|string given\\.$#" + message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Util/RemoteFilesystemTest.php + path: ../src/Composer/Util/Perforce.php - - message: "#^Parameter \\#1 \\$objectOrValue of method ReflectionProperty\\:\\:setValue\\(\\) expects object\\|null, object\\|string given\\.$#" + message: "#^Parameter \\#1 \\$string of function base64_encode expects string, string\\|false given\\.$#" count: 1 - path: ../tests/Composer/Test/Util/RemoteFilesystemTest.php - - - - message: "#^Parameter \\#1 \\$originUrl of method Composer\\\\Util\\\\RemoteFilesystem\\:\\:getContents\\(\\) expects string, string\\|false\\|null given\\.$#" - count: 2 - path: ../tests/Composer/Test/Util/RemoteFilesystemTest.php + path: ../src/Composer/Util/RemoteFilesystem.php - - message: "#^Parameter \\#2 \\$haystack of method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, bool\\|string given\\.$#" + message: "#^Parameter \\#5 \\$length of function file_get_contents expects int\\<0, max\\>\\|null, int given\\.$#" count: 1 - path: ../tests/Composer/Test/Util/RemoteFilesystemTest.php + path: ../src/Composer/Util/RemoteFilesystem.php - - message: "#^Parameter \\#2 \\$haystack of method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, string\\|false given\\.$#" + message: "#^Parameter \\#1 \\$include_path of function set_include_path expects string, string\\|false given\\.$#" count: 2 - path: ../tests/Composer/Test/Util/RemoteFilesystemTest.php + path: ../tests/Composer/Test/Autoload/AutoloadGeneratorTest.php - - message: "#^Implicit array creation is not allowed \\- variable \\$certificate does not exist\\.$#" + message: "#^Parameter \\#1 \\$string of function rtrim expects string, string\\|false given\\.$#" count: 2 - path: ../tests/Composer/Test/Util/TlsHelperTest.php - - - - message: "#^Offset 'cn' does not exist on array\\{cn\\: string, san\\: array\\\\}\\|null\\.$#" - count: 1 - path: ../tests/Composer/Test/Util/TlsHelperTest.php + path: ../tests/Composer/Test/ConfigTest.php - - message: "#^Offset 'san' does not exist on array\\{cn\\: string, san\\: array\\\\}\\|null\\.$#" + message: "#^Parameter \\#1 \\$callback of function call_user_func_array expects callable\\(\\)\\: mixed, array\\{Composer\\\\Repository\\\\CompositeRepository, string\\} given\\.$#" count: 1 - path: ../tests/Composer/Test/Util/TlsHelperTest.php + path: ../tests/Composer/Test/Repository/CompositeRepositoryTest.php - - message: "#^Only booleans are allowed in a ternary operator condition, array\\ given\\.$#" + message: "#^Parameter \\#1 \\$object of method ReflectionProperty\\:\\:getValue\\(\\) expects object\\|null, object\\|string given\\.$#" count: 1 - path: ../tests/Composer/Test/Util/TlsHelperTest.php + path: ../tests/Composer/Test/Util/RemoteFilesystemTest.php diff --git a/phpstan/baseline.neon b/phpstan/baseline.neon index 5fadcc72ceaa..0865c36c7f54 100644 --- a/phpstan/baseline.neon +++ b/phpstan/baseline.neon @@ -270,21 +270,11 @@ parameters: count: 1 path: ../src/Composer/Autoload/ClassMapGenerator.php - - - message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Autoload/ClassMapGenerator.php - - message: "#^Parameter \\#3 \\$baseNamespace of static method Composer\\\\Autoload\\\\ClassMapGenerator\\:\\:filterByNamespace\\(\\) expects string, string\\|null given\\.$#" count: 1 path: ../src/Composer/Autoload/ClassMapGenerator.php - - - message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#" - count: 1 - path: ../src/Composer/Autoload/ClassMapGenerator.php - - message: "#^Parameter \\#5 \\$basePath of static method Composer\\\\Autoload\\\\ClassMapGenerator\\:\\:filterByNamespace\\(\\) expects string, array\\\\|string\\|Traversable\\ given\\.$#" count: 1 @@ -295,11 +285,6 @@ parameters: count: 2 path: ../src/Composer/Cache.php - - - message: "#^Only booleans are allowed in a negated boolean, int given\\.$#" - count: 1 - path: ../src/Composer/Cache.php - - message: "#^Only booleans are allowed in a negated boolean, int\\<0, 50\\> given\\.$#" count: 1 @@ -320,11 +305,6 @@ parameters: count: 1 path: ../src/Composer/Cache.php - - - message: "#^Parameter \\#2 \\$time of function touch expects int, int\\|false given\\.$#" - count: 1 - path: ../src/Composer/Cache.php - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" count: 1 @@ -370,11 +350,6 @@ parameters: count: 1 path: ../src/Composer/Command/ArchiveCommand.php - - - message: "#^Call to function method_exists\\(\\) with Symfony\\\\Component\\\\Console\\\\Helper\\\\TableStyle and 'setVerticalBorderCh…' will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Command/BaseCommand.php - - message: "#^Instanceof between Composer\\\\Console\\\\Application and Composer\\\\Console\\\\Application will always evaluate to true\\.$#" count: 2 @@ -980,11 +955,6 @@ parameters: count: 1 path: ../src/Composer/Command/HomeCommand.php - - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - message: "#^Argument of an invalid type array\\\\|false supplied for foreach, only iterables are supported\\.$#" count: 1 @@ -995,11 +965,6 @@ parameters: count: 1 path: ../src/Composer/Command/InitCommand.php - - - message: "#^Call to function method_exists\\(\\) with 'Symfony\\\\\\\\Component…' and 'fromShellCommandline' will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Command/InitCommand.php - - message: "#^Cannot call method get\\(\\) on Symfony\\\\Component\\\\Console\\\\Helper\\\\HelperSet\\|null\\.$#" count: 1 @@ -1235,11 +1200,6 @@ parameters: count: 2 path: ../src/Composer/Command/LicensesCommand.php - - - message: "#^Call to function method_exists\\(\\) with Symfony\\\\Component\\\\Console\\\\Helper\\\\TableStyle and 'setVerticalBorderCh…' will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Command/LicensesCommand.php - - message: "#^Cannot call method getEventDispatcher\\(\\) on Composer\\\\Composer\\|null\\.$#" count: 1 @@ -1715,11 +1675,6 @@ parameters: count: 1 path: ../src/Composer/Command/SelfUpdateCommand.php - - - message: "#^Parameter \\#1 \\$key_identifier of function openssl_free_key expects resource, resource\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/SelfUpdateCommand.php - - message: "#^Parameter \\#1 \\$old_name of function rename expects string, string\\|false given\\.$#" count: 1 @@ -1740,11 +1695,6 @@ parameters: count: 1 path: ../src/Composer/Command/SelfUpdateCommand.php - - - message: "#^Parameter \\#3 \\$pub_key_id of function openssl_verify expects resource\\|string, resource\\|false given\\.$#" - count: 1 - path: ../src/Composer/Command/SelfUpdateCommand.php - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" count: 2 @@ -1865,11 +1815,6 @@ parameters: count: 1 path: ../src/Composer/Command/ShowCommand.php - - - message: "#^Offset 'latest\\-status' does not exist on array\\{name\\: string, version\\?\\: string, latest\\: string, latest\\-status\\?\\: string, description\\?\\: string\\|null, path\\?\\: string\\|false, warning\\?\\: non\\-empty\\-string\\}\\.$#" - count: 1 - path: ../src/Composer/Command/ShowCommand.php - - message: "#^Only booleans are allowed in &&, Composer\\\\Composer\\|null given on the right side\\.$#" count: 1 @@ -2430,11 +2375,6 @@ parameters: count: 1 path: ../src/Composer/Compiler.php - - - message: "#^Call to function method_exists\\(\\) with 'Symfony\\\\\\\\Component…' and 'fromShellCommandline' will always evaluate to true\\.$#" - count: 3 - path: ../src/Composer/Compiler.php - - message: "#^Parameter \\#1 \\$haystack of function strpos expects string, string\\|false given\\.$#" count: 1 @@ -2465,11 +2405,6 @@ parameters: count: 1 path: ../src/Composer/Compiler.php - - - message: "#^Anonymous function uses \\$this assigned to variable \\$config\\. Use \\$this directly in the function body\\.$#" - count: 1 - path: ../src/Composer/Config.php - - message: "#^Array \\(array\\\\) does not accept key 0\\|string\\.$#" count: 1 @@ -2565,11 +2500,6 @@ parameters: count: 1 path: ../src/Composer/Console/Application.php - - - message: "#^Call to function method_exists\\(\\) with \\$this\\(Composer\\\\Console\\\\Application\\) and 'areExceptionsCaught' will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Console/Application.php - - message: "#^Instanceof between Composer\\\\Command\\\\BaseCommand and Composer\\\\Command\\\\BaseCommand will always evaluate to true\\.$#" count: 1 @@ -2720,11 +2650,6 @@ parameters: count: 1 path: ../src/Composer/DependencyResolver/Decisions.php - - - message: "#^Anonymous function uses \\$this assigned to variable \\$policy\\. Use \\$this directly in the function body\\.$#" - count: 2 - path: ../src/Composer/DependencyResolver/DefaultPolicy.php - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" count: 1 @@ -3235,21 +3160,11 @@ parameters: count: 2 path: ../src/Composer/DependencyResolver/Transaction.php - - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 3 - path: ../src/Composer/Downloader/ArchiveDownloader.php - - message: "#^Parameter \\#2 \\$path of method Composer\\\\Downloader\\\\FileDownloader\\:\\:removeCleanupPath\\(\\) expects string, string\\|false given\\.$#" count: 1 path: ../src/Composer/Downloader/ArchiveDownloader.php - - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 2 - path: ../src/Composer/Downloader/DownloadManager.php - - message: "#^Call to function array_search\\(\\) requires parameter \\#3 to be set\\.$#" count: 1 @@ -3315,11 +3230,6 @@ parameters: count: 1 path: ../src/Composer/Downloader/DownloadManager.php - - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 4 - path: ../src/Composer/Downloader/FileDownloader.php - - message: "#^Call to function array_search\\(\\) requires parameter \\#3 to be set\\.$#" count: 1 @@ -3750,11 +3660,6 @@ parameters: count: 2 path: ../src/Composer/Downloader/VcsDownloader.php - - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 2 - path: ../src/Composer/Downloader/ZipDownloader.php - - message: "#^Only booleans are allowed in &&, string\\|null given on the right side\\.$#" count: 3 @@ -4210,11 +4115,6 @@ parameters: count: 1 path: ../src/Composer/Installer/BinaryInstaller.php - - - message: "#^Anonymous function uses \\$this assigned to variable \\$installManager\\. Use \\$this directly in the function body\\.$#" - count: 2 - path: ../src/Composer/Installer/InstallationManager.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" count: 2 @@ -4325,11 +4225,6 @@ parameters: count: 2 path: ../src/Composer/Installer/InstallationManager.php - - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 1 - path: ../src/Composer/Installer/LibraryInstaller.php - - message: "#^Only booleans are allowed in a ternary operator condition, string given\\.$#" count: 1 @@ -4370,11 +4265,6 @@ parameters: count: 1 path: ../src/Composer/Installer/NoopInstaller.php - - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 2 - path: ../src/Composer/Installer/PluginInstaller.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" count: 1 @@ -4422,7 +4312,7 @@ parameters: - message: "#^Method Composer\\\\Json\\\\JsonFile\\:\\:encode\\(\\) should return string but returns string\\|false\\.$#" - count: 2 + count: 1 path: ../src/Composer/Json/JsonFile.php - @@ -4465,31 +4355,11 @@ parameters: count: 1 path: ../src/Composer/Json/JsonFile.php - - - message: "#^Parameter \\#1 \\$json of static method Composer\\\\Json\\\\JsonFormatter\\:\\:format\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Json/JsonFile.php - - - - message: "#^Parameter \\#1 \\$version1 of function version_compare expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Json/JsonFile.php - - - - message: "#^Parameter \\#3 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:replace\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Json/JsonFile.php - - message: "#^Only booleans are allowed in an if condition, int\\<0, 1\\> given\\.$#" count: 1 path: ../src/Composer/Json/JsonFormatter.php - - - message: "#^Anonymous function uses \\$this assigned to variable \\$that\\. Use \\$this directly in the function body\\.$#" - count: 2 - path: ../src/Composer/Json/JsonManipulator.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" count: 2 @@ -4945,11 +4815,6 @@ parameters: count: 1 path: ../src/Composer/Package/Locker.php - - - message: "#^Parameter \\#1 \\$str of function md5 expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Package/Locker.php - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" count: 3 @@ -5265,11 +5130,6 @@ parameters: count: 1 path: ../src/Composer/Repository/ArtifactRepository.php - - - message: "#^Anonymous function uses \\$this assigned to variable \\$repo\\. Use \\$this directly in the function body\\.$#" - count: 3 - path: ../src/Composer/Repository/ComposerRepository.php - - message: "#^Argument of an invalid type array\\\\|null supplied for foreach, only iterables are supported\\.$#" count: 1 @@ -6495,11 +6355,6 @@ parameters: count: 1 path: ../src/Composer/Util/ErrorHandler.php - - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 1 - path: ../src/Composer/Util/Filesystem.php - - message: "#^Cannot call method getPathname\\(\\) on SplFileInfo\\|string\\.$#" count: 1 @@ -6615,11 +6470,6 @@ parameters: count: 1 path: ../src/Composer/Util/Git.php - - - message: "#^Only booleans are allowed in &&, string\\|false given on the right side\\.$#" - count: 1 - path: ../src/Composer/Util/Git.php - - message: "#^Only booleans are allowed in &&, string\\|null given on the left side\\.$#" count: 1 @@ -6640,11 +6490,6 @@ parameters: count: 2 path: ../src/Composer/Util/Git.php - - - message: "#^Parameter \\#1 \\$haystack of function strpos expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/Git.php - - message: "#^Parameter \\#1 \\$str of function rawurlencode expects string, string\\|null given\\.$#" count: 17 @@ -7020,11 +6865,6 @@ parameters: count: 1 path: ../src/Composer/Util/Http/Response.php - - - message: "#^Anonymous function uses \\$this assigned to variable \\$downloader\\. Use \\$this directly in the function body\\.$#" - count: 2 - path: ../src/Composer/Util/HttpDownloader.php - - message: "#^Argument of an invalid type array\\\\>\\|string supplied for foreach, only iterables are supported\\.$#" count: 1 @@ -7100,11 +6940,6 @@ parameters: count: 1 path: ../src/Composer/Util/HttpDownloader.php - - - message: "#^Only booleans are allowed in &&, Composer\\\\Util\\\\Http\\\\CurlDownloader\\|null given on the left side\\.$#" - count: 1 - path: ../src/Composer/Util/HttpDownloader.php - - message: "#^Only booleans are allowed in a negated boolean, Composer\\\\Util\\\\Http\\\\CurlDownloader\\|null given\\.$#" count: 1 @@ -7240,11 +7075,6 @@ parameters: count: 1 path: ../src/Composer/Util/NoProxyPattern.php - - - message: "#^Call to function method_exists\\(\\) with 'Symfony\\\\\\\\Component…' and 'fromShellCommandline' will always evaluate to true\\.$#" - count: 1 - path: ../src/Composer/Util/Perforce.php - - message: "#^Only booleans are allowed in a negated boolean, array\\ given\\.$#" count: 1 @@ -7335,49 +7165,19 @@ parameters: count: 2 path: ../src/Composer/Util/Platform.php - - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 2 - path: ../src/Composer/Util/ProcessExecutor.php - - - - message: "#^Call to function method_exists\\(\\) with 'Symfony\\\\\\\\Component…' and 'fromShellCommandline' will always evaluate to true\\.$#" - count: 2 - path: ../src/Composer/Util/ProcessExecutor.php - - message: "#^Method Composer\\\\Util\\\\ProcessExecutor\\:\\:doExecute\\(\\) should return int but returns int\\|null\\.$#" count: 1 path: ../src/Composer/Util/ProcessExecutor.php - - - message: "#^Only booleans are allowed in &&, Composer\\\\IO\\\\IOInterface\\|null given on the left side\\.$#" - count: 2 - path: ../src/Composer/Util/ProcessExecutor.php - - - - message: "#^Only booleans are allowed in &&, string\\|false given on the right side\\.$#" - count: 2 - path: ../src/Composer/Util/ProcessExecutor.php - - message: "#^Only booleans are allowed in a negated boolean, int given\\.$#" count: 1 path: ../src/Composer/Util/ProcessExecutor.php - - - message: "#^Parameter \\#1 \\$filename of function is_dir expects string, string\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/ProcessExecutor.php - - - - message: "#^Parameter \\#2 \\$cwd of static method Symfony\\\\Component\\\\Process\\\\Process\\:\\:fromShellCommandline\\(\\) expects string\\|null, string\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/ProcessExecutor.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/Util/ProcessExecutor.php - @@ -7387,7 +7187,7 @@ parameters: - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" - count: 10 + count: 8 path: ../src/Composer/Util/RemoteFilesystem.php - @@ -7450,11 +7250,6 @@ parameters: count: 1 path: ../src/Composer/Util/RemoteFilesystem.php - - - message: "#^Only booleans are allowed in an if condition, array\\\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - message: "#^Only booleans are allowed in an if condition, string given\\.$#" count: 2 @@ -7515,11 +7310,6 @@ parameters: count: 1 path: ../src/Composer/Util/RemoteFilesystem.php - - - message: "#^Parameter \\#2 \\$hostname of static method Composer\\\\Util\\\\TlsHelper\\:\\:checkCertificateHost\\(\\) expects string, string\\|false\\|null given\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - message: "#^Parameter \\#5 \\$maxlen of function file_get_contents expects int\\<0, max\\>, int given\\.$#" count: 1 @@ -7535,11 +7325,6 @@ parameters: count: 1 path: ../src/Composer/Util/RemoteFilesystem.php - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../src/Composer/Util/RemoteFilesystem.php - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" count: 1 @@ -7675,11 +7460,6 @@ parameters: count: 1 path: ../src/Composer/Util/TlsHelper.php - - - message: "#^Parameter \\#1 \\$key of function openssl_pkey_get_details expects resource, resource\\|false given\\.$#" - count: 1 - path: ../src/Composer/Util/TlsHelper.php - - message: "#^Call to function in_array\\(\\) requires parameter \\#3 to be set\\.$#" count: 1 @@ -7720,21 +7500,11 @@ parameters: count: 2 path: ../src/bootstrap.php - - - message: "#^Call to function method_exists\\(\\) with 'Symfony\\\\\\\\Component…' and 'fromShellCommandline' will always evaluate to true\\.$#" - count: 2 - path: ../tests/Composer/Test/AllFunctionalTest.php - - message: "#^Call to method RecursiveDirectoryIterator\\:\\:getSubPathname\\(\\) with incorrect case\\: getSubPathName$#" count: 1 path: ../tests/Composer/Test/AllFunctionalTest.php - - - message: "#^Cannot access offset int\\<0, max\\> on int\\|string\\.$#" - count: 3 - path: ../tests/Composer/Test/AllFunctionalTest.php - - message: "#^Method Composer\\\\Test\\\\AllFunctionalTest\\:\\:getTestFiles\\(\\) should return array\\\\> but returns array\\\\>\\.$#" count: 1 @@ -7760,41 +7530,11 @@ parameters: count: 3 path: ../tests/Composer/Test/AllFunctionalTest.php - - - message: "#^Parameter \\#1 \\$haystack of function strpos expects string, int\\|string given\\.$#" - count: 1 - path: ../tests/Composer/Test/AllFunctionalTest.php - - - - message: "#^Parameter \\#1 \\$pattern of method PHPUnit\\\\Framework\\\\Assert\\:\\:assertRegExp\\(\\) expects string, int\\|string given\\.$#" - count: 1 - path: ../tests/Composer/Test/AllFunctionalTest.php - - - - message: "#^Parameter \\#1 \\$string of function strlen expects string, int\\|string given\\.$#" - count: 1 - path: ../tests/Composer/Test/AllFunctionalTest.php - - - - message: "#^Parameter \\#1 \\$string of function substr expects string, int\\|string given\\.$#" - count: 2 - path: ../tests/Composer/Test/AllFunctionalTest.php - - - - message: "#^Parameter \\#2 \\$str of function explode expects string, int\\|string given\\.$#" - count: 1 - path: ../tests/Composer/Test/AllFunctionalTest.php - - message: "#^Parameter \\#2 \\$subject of static method Composer\\\\Pcre\\\\Preg\\:\\:split\\(\\) expects string, string\\|false given\\.$#" count: 1 path: ../tests/Composer/Test/AllFunctionalTest.php - - - message: "#^Anonymous function uses \\$this assigned to variable \\$that\\. Use \\$this directly in the function body\\.$#" - count: 3 - path: ../tests/Composer/Test/Autoload/AutoloadGeneratorTest.php - - message: "#^Dynamic call to static method Composer\\\\Test\\\\Autoload\\\\AutoloadGeneratorTest\\:\\:assertFileContentEquals\\(\\)\\.$#" count: 28 @@ -7815,21 +7555,11 @@ parameters: count: 2 path: ../tests/Composer/Test/Autoload/AutoloadGeneratorTest.php - - - message: "#^Parameter \\#1 \\$expected of static method Composer\\\\Test\\\\Autoload\\\\AutoloadGeneratorTest\\:\\:assertEqualsNormalized\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/Autoload/AutoloadGeneratorTest.php - - message: "#^Parameter \\#1 \\$new_include_path of function set_include_path expects string, string\\|false given\\.$#" count: 2 path: ../tests/Composer/Test/Autoload/AutoloadGeneratorTest.php - - - message: "#^Parameter \\#2 \\$actual of static method Composer\\\\Test\\\\Autoload\\\\AutoloadGeneratorTest\\:\\:assertEqualsNormalized\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/Autoload/AutoloadGeneratorTest.php - - message: "#^Parameter \\#2 \\$haystack of method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringContainsString\\(\\) expects string, string\\|false given\\.$#" count: 8 @@ -7845,11 +7575,6 @@ parameters: count: 1 path: ../tests/Composer/Test/Autoload/AutoloadGeneratorTest.php - - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 1 - path: ../tests/Composer/Test/Autoload/AutoloadGeneratorTest.php - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:ensureDirectoryExistsAndClear\\(\\)\\.$#" count: 1 @@ -8090,56 +7815,21 @@ parameters: count: 1 path: ../tests/Composer/Test/Downloader/ArchiveDownloaderTest.php - - - message: "#^Only booleans are allowed in a ternary operator condition, Prophecy\\\\Prophecy\\\\ObjectProphecy\\|null given\\.$#" - count: 1 - path: ../tests/Composer/Test/Downloader/DownloadManagerTest.php - - message: "#^Only booleans are allowed in an if condition, string\\|null given\\.$#" count: 1 path: ../tests/Composer/Test/Downloader/DownloadManagerTest.php - - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 6 - path: ../tests/Composer/Test/Downloader/FileDownloaderTest.php - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" count: 6 path: ../tests/Composer/Test/Downloader/FileDownloaderTest.php - - - message: "#^Parameter \\#1 \\$directory of method Composer\\\\Util\\\\Filesystem\\:\\:removeDirectory\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/Downloader/FileDownloaderTest.php - - - - message: "#^Parameter \\#1 \\$filename of function is_dir expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/Downloader/FileDownloaderTest.php - - - - message: "#^Parameter \\#1 \\$filename of function is_file expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/Downloader/FileDownloaderTest.php - - - - message: "#^Parameter \\#1 \\$filename of function unlink expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/Downloader/FileDownloaderTest.php - - message: "#^Parameter \\#1 \\$promises of method Composer\\\\Util\\\\Loop\\:\\:wait\\(\\) expects array\\, array\\ given\\.$#" count: 5 path: ../tests/Composer/Test/Downloader/FileDownloaderTest.php - - - message: "#^Parameter \\#2 \\$path of method Composer\\\\Downloader\\\\FileDownloader\\:\\:download\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/Downloader/FileDownloaderTest.php - - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" count: 3 @@ -8236,11 +7926,10 @@ parameters: path: ../tests/Composer/Test/IO/NullIOTest.php - - message: - """ - #^Call to deprecated method getRawData\\(\\) of class Composer\\\\InstalledVersions\\: - Use getAllRawData\\(\\) instead which returns all datasets for all autoloaders present in the process\\. getRawData only returns the first dataset loaded, which may not be what you expect\\.$# - """ + message: """ + #^Call to deprecated method getRawData\\(\\) of class Composer\\\\InstalledVersions\\: + Use getAllRawData\\(\\) instead which returns all datasets for all autoloaders present in the process\\. getRawData only returns the first dataset loaded, which may not be what you expect\\.$# + """ count: 1 path: ../tests/Composer/Test/InstalledVersionsTest.php @@ -8339,11 +8028,6 @@ parameters: count: 1 path: ../tests/Composer/Test/InstallerTest.php - - - message: "#^Parameter \\#1 \\$fp of function fseek expects resource, resource\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/InstallerTest.php - - message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|false\\|null given\\.$#" count: 1 @@ -8354,26 +8038,11 @@ parameters: count: 1 path: ../tests/Composer/Test/InstallerTest.php - - - message: "#^Parameter \\#1 \\$source of function stream_get_contents expects resource, resource\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/InstallerTest.php - - - - message: "#^Parameter \\#1 \\$str of function md5 expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/InstallerTest.php - - message: "#^Parameter \\#1 \\$str of function strtr expects string, string\\|false given\\.$#" count: 1 path: ../tests/Composer/Test/InstallerTest.php - - - message: "#^Parameter \\#1 \\$stream of class Symfony\\\\Component\\\\Console\\\\Output\\\\StreamOutput constructor expects resource, resource\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/InstallerTest.php - - message: "#^Parameter \\#2 \\$fixturesDir of method Composer\\\\Test\\\\InstallerTest\\:\\:readTestFile\\(\\) expects string, string\\|false given\\.$#" count: 1 @@ -8409,31 +8078,11 @@ parameters: count: 4 path: ../tests/Composer/Test/Json/JsonFileTest.php - - - message: "#^Parameter \\#1 \\$file of function file_put_contents expects string, string\\|false given\\.$#" - count: 12 - path: ../tests/Composer/Test/Json/JsonFileTest.php - - - - message: "#^Parameter \\#1 \\$filename of function unlink expects string, string\\|false given\\.$#" - count: 7 - path: ../tests/Composer/Test/Json/JsonFileTest.php - - - - message: "#^Parameter \\#1 \\$path of class Composer\\\\Json\\\\JsonFile constructor expects string, string\\|false given\\.$#" - count: 5 - path: ../tests/Composer/Test/Json/JsonFileTest.php - - message: "#^Parameter \\#1 \\$version1 of function version_compare expects string, string\\|false given\\.$#" count: 1 path: ../tests/Composer/Test/Json/JsonFileTest.php - - - message: "#^Parameter \\#2 \\$schemaFile of method Composer\\\\Json\\\\JsonFile\\:\\:validateSchema\\(\\) expects string\\|null, string\\|false given\\.$#" - count: 2 - path: ../tests/Composer/Test/Json/JsonFileTest.php - - message: "#^Parameter \\#1 \\$contents of class Composer\\\\Json\\\\JsonManipulator constructor expects string, string\\|false given\\.$#" count: 1 @@ -8474,11 +8123,6 @@ parameters: count: 1 path: ../tests/Composer/Test/Mock/InstallationManagerMock.php - - - message: "#^Only booleans are allowed in an elseif condition, array\\ given\\.$#" - count: 1 - path: ../tests/Composer/Test/Mock/ProcessExecutorMock.php - - message: "#^Only booleans are allowed in an if condition, string given\\.$#" count: 2 @@ -8495,7 +8139,7 @@ parameters: path: ../tests/Composer/Test/Mock/ProcessExecutorMock.php - - message: "#^Property Composer\\\\Test\\\\Mock\\\\ProcessExecutorMock\\:\\:\\$expectations \\(array\\\\|null\\) does not accept array\\\\>\\.$#" + message: "#^Property Composer\\\\Test\\\\Mock\\\\ProcessExecutorMock\\:\\:\\$expectations \\(array\\\\|string, return\\: int, stdout\\: string, stderr\\: string, callback\\: \\(callable\\(\\)\\: mixed\\)\\|null\\}\\>\\|null\\) does not accept array\\\\|\\(callable\\(\\)\\: mixed\\)\\|int\\|string\\>\\>\\.$#" count: 1 path: ../tests/Composer/Test/Mock/ProcessExecutorMock.php @@ -8504,11 +8148,6 @@ parameters: count: 1 path: ../tests/Composer/Test/Mock/VersionGuesserMock.php - - - message: "#^Call to function method_exists\\(\\) with 'Symfony\\\\\\\\Component…' and 'fromShellCommandline' will always evaluate to true\\.$#" - count: 1 - path: ../tests/Composer/Test/Package/Archiver/ArchivableFilesFinderTest.php - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" count: 1 @@ -8579,11 +8218,6 @@ parameters: count: 1 path: ../tests/Composer/Test/Package/Archiver/ZipArchiverTest.php - - - message: "#^Anonymous function uses \\$this assigned to variable \\$self\\. Use \\$this directly in the function body\\.$#" - count: 1 - path: ../tests/Composer/Test/Package/BasePackageTest.php - - message: "#^Implicit array creation is not allowed \\- variable \\$provider does not exist\\.$#" count: 1 @@ -8594,36 +8228,11 @@ parameters: count: 2 path: ../tests/Composer/Test/Package/Dumper/ArrayDumperTest.php - - - message: "#^Parameter \\#1 \\$manager of class Composer\\\\Package\\\\Loader\\\\RootPackageLoader constructor expects Composer\\\\Repository\\\\RepositoryManager, object given\\.$#" - count: 1 - path: ../tests/Composer/Test/Package/Loader/RootPackageLoaderTest.php - - - - message: "#^Parameter \\#4 \\$versionGuesser of class Composer\\\\Package\\\\Loader\\\\RootPackageLoader constructor expects Composer\\\\Package\\\\Version\\\\VersionGuesser\\|null, object given\\.$#" - count: 1 - path: ../tests/Composer/Test/Package/Loader/RootPackageLoaderTest.php - - message: "#^Call to method PHPUnit\\\\Framework\\\\Assert\\:\\:assertTrue\\(\\) with true will always evaluate to true\\.$#" count: 1 path: ../tests/Composer/Test/Package/Loader/ValidatingArrayLoaderTest.php - - - message: "#^Parameter \\#1 \\$str of function md5 expects string, string\\|false given\\.$#" - count: 4 - path: ../tests/Composer/Test/Package/LockerTest.php - - - - message: "#^Parameter \\#4 \\$composerFileContents of class Composer\\\\Package\\\\Locker constructor expects string, string\\|false given\\.$#" - count: 9 - path: ../tests/Composer/Test/Package/LockerTest.php - - - - message: "#^Parameter \\#1 \\$aliasOf of class Composer\\\\Package\\\\RootAliasPackage constructor expects Composer\\\\Package\\\\RootPackage, object given\\.$#" - count: 5 - path: ../tests/Composer/Test/Package/RootAliasPackageTest.php - - message: "#^Offset 'commit' does not exist on array\\{version\\: string, commit\\: string\\|null, pretty_version\\: string\\|null, feature_version\\?\\: string\\|null, feature_pretty_version\\?\\: string\\|null\\}\\|null\\.$#" count: 6 @@ -8709,11 +8318,6 @@ parameters: count: 2 path: ../tests/Composer/Test/Plugin/PluginInstallerTest.php - - - message: "#^Instanceof between Symfony\\\\Component\\\\Console\\\\Input\\\\ArrayInput and Symfony\\\\Component\\\\Console\\\\Input\\\\StreamableInputInterface will always evaluate to true\\.$#" - count: 1 - path: ../tests/Composer/Test/Question/StrictConfirmationQuestionTest.php - - message: "#^Parameter \\#1 \\$stream of class Symfony\\\\Component\\\\Console\\\\Output\\\\StreamOutput constructor expects resource, resource\\|false given\\.$#" count: 1 @@ -8929,11 +8533,6 @@ parameters: count: 2 path: ../tests/Composer/Test/Util/FilesystemTest.php - - - message: "#^Anonymous function uses \\$this assigned to variable \\$that\\. Use \\$this directly in the function body\\.$#" - count: 2 - path: ../tests/Composer/Test/Util/GitTest.php - - message: "#^Call to method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Composer\\\\\\\\Util\\\\\\\\Http…' and Composer\\\\Util\\\\Http\\\\ProxyManager will always evaluate to true\\.$#" count: 1 @@ -8974,21 +8573,6 @@ parameters: count: 2 path: ../tests/Composer/Test/Util/PerforceTest.php - - - message: "#^Parameter \\#1 \\$fp of function fclose expects resource, resource\\|false given\\.$#" - count: 4 - path: ../tests/Composer/Test/Util/PerforceTest.php - - - - message: "#^Parameter \\#1 \\$fp of function fgets expects resource, resource\\|false given\\.$#" - count: 4 - path: ../tests/Composer/Test/Util/PerforceTest.php - - - - message: "#^Parameter \\#1 \\$fp of function rewind expects resource, resource\\|false given\\.$#" - count: 2 - path: ../tests/Composer/Test/Util/PerforceTest.php - - message: "#^Parameter \\#2 \\$string of method PHPUnit\\\\Framework\\\\Assert\\:\\:assertStringStartsWith\\(\\) expects string, string\\|false given\\.$#" count: 2 @@ -9014,21 +8598,6 @@ parameters: count: 1 path: ../tests/Composer/Test/Util/RemoteFilesystemTest.php - - - message: "#^Parameter \\#1 \\$filename of function file_get_contents expects string, string\\|false given\\.$#" - count: 2 - path: ../tests/Composer/Test/Util/RemoteFilesystemTest.php - - - - message: "#^Parameter \\#1 \\$filename of function unlink expects string, string\\|false given\\.$#" - count: 3 - path: ../tests/Composer/Test/Util/RemoteFilesystemTest.php - - - - message: "#^Parameter \\#1 \\$filename of method PHPUnit\\\\Framework\\\\Assert\\:\\:assertFileExists\\(\\) expects string, string\\|false given\\.$#" - count: 2 - path: ../tests/Composer/Test/Util/RemoteFilesystemTest.php - - message: "#^Parameter \\#1 \\$object of method ReflectionProperty\\:\\:getValue\\(\\) expects object, object\\|string given\\.$#" count: 1 @@ -9054,11 +8623,6 @@ parameters: count: 2 path: ../tests/Composer/Test/Util/RemoteFilesystemTest.php - - - message: "#^Parameter \\#3 \\$fileName of method Composer\\\\Util\\\\RemoteFilesystem\\:\\:copy\\(\\) expects string, string\\|false given\\.$#" - count: 3 - path: ../tests/Composer/Test/Util/RemoteFilesystemTest.php - - message: "#^Implicit array creation is not allowed \\- variable \\$certificate does not exist\\.$#" count: 2 diff --git a/src/Composer/Package/Version/VersionGuesser.php b/src/Composer/Package/Version/VersionGuesser.php index d9c18a8239f0..fbf695a369e5 100644 --- a/src/Composer/Package/Version/VersionGuesser.php +++ b/src/Composer/Package/Version/VersionGuesser.php @@ -137,7 +137,7 @@ private function guessGitVersion(array $packageConfig, $path) $isDetached = false; // try to fetch current version from git branch - if (0 === $this->process->execute('git branch -a --no-color --no-abbrev -v', $output, $path)) { + if (0 === $this->process->execute(['git', 'branch', '-a', '--no-color', '--no-abbrev', '-v'], $output, $path)) { $branches = array(); $isFeatureBranch = false; diff --git a/src/Composer/Util/ProcessExecutor.php b/src/Composer/Util/ProcessExecutor.php index e6281dd58a87..67eeffd1499b 100644 --- a/src/Composer/Util/ProcessExecutor.php +++ b/src/Composer/Util/ProcessExecutor.php @@ -62,7 +62,7 @@ public function __construct(IOInterface $io = null) /** * runs a process on the commandline * - * @param string $command the command to execute + * @param string|list $command the command to execute * @param mixed $output the output will be written into this var if passed by ref * if a callable is passed it will be used as output handler * @param ?string $cwd the working directory @@ -80,7 +80,7 @@ public function execute($command, &$output = null, $cwd = null) /** * runs a process on the commandline in TTY mode * - * @param string $command the command to execute + * @param string|list $command the command to execute * @param ?string $cwd the working directory * @return int statuscode */ @@ -94,7 +94,7 @@ public function executeTty($command, $cwd = null) } /** - * @param string $command + * @param string|list $command * @param ?string $cwd * @param bool $tty * @param mixed $output @@ -107,7 +107,12 @@ private function doExecute($command, $cwd, $tty, &$output = null) $this->captureOutput = func_num_args() > 3; $this->errorOutput = ''; - $process = Process::fromShellCommandline($command, $cwd, null, null, static::getTimeout()); + if (is_string($command)) { + $process = Process::fromShellCommandline($command, $cwd, null, null, static::getTimeout()); + } else { + $process = new Process($command, $cwd, null, null, static::getTimeout()); + } + if (!Platform::isWindows() && $tty) { try { $process->setTty(true); @@ -131,8 +136,8 @@ private function doExecute($command, $cwd, $tty, &$output = null) /** * starts a process on the commandline in async mode * - * @param string $command the command to execute - * @param string $cwd the working directory + * @param string|list $command the command to execute + * @param string $cwd the working directory * @return PromiseInterface */ public function executeAsync($command, $cwd = null) @@ -222,7 +227,11 @@ private function startJob($id) $this->outputCommandRun($command, $cwd, true); try { - $process = Process::fromShellCommandline($command, $cwd, null, null, static::getTimeout()); + if (is_string($command)) { + $process = Process::fromShellCommandline($command, $cwd, null, null, static::getTimeout()); + } else { + $process = new Process($command, $cwd, null, null, static::getTimeout()); + } } catch (\Throwable $e) { call_user_func($job['reject'], $e); @@ -387,17 +396,15 @@ public static function escape($argument) } /** - * @param string $command - * @param ?string $cwd - * @param bool $async - * @return void + * @param string|list $command */ - private function outputCommandRun($command, $cwd, $async) + private function outputCommandRun($command, ?string $cwd, bool $async): void { if (null === $this->io || !$this->io->isDebug()) { return; } + $commandString = is_string($command) ? $command : implode(' ', array_map(self::class.'::escape', $command)); $safeCommand = Preg::replaceCallback('{://(?P[^:/\s]+):(?P[^@\s/]+)@}i', function ($m) { // if the username looks like a long (12char+) hex string, or a modern github token (e.g. ghp_xxx) we obfuscate that if (Preg::isMatch('{^([a-f0-9]{12,}|gh[a-z]_[a-zA-Z0-9_]+)$}', $m['user'])) { @@ -408,7 +415,7 @@ private function outputCommandRun($command, $cwd, $async) } return '://'.$m['user'].':***@'; - }, $command); + }, $commandString); $safeCommand = Preg::replace("{--password (.*[^\\\\]\') }", '--password \'***\' ', $safeCommand); $this->io->writeError('Executing'.($async ? ' async' : '').' command ('.($cwd ?: 'CWD').'): '.$safeCommand); } diff --git a/tests/Composer/Test/Mock/ProcessExecutorMock.php b/tests/Composer/Test/Mock/ProcessExecutorMock.php index 61adeca70b5e..c8f04aa7e455 100644 --- a/tests/Composer/Test/Mock/ProcessExecutorMock.php +++ b/tests/Composer/Test/Mock/ProcessExecutorMock.php @@ -26,7 +26,7 @@ class ProcessExecutorMock extends ProcessExecutor { /** - * @var array|null + * @var array, return: int, stdout: string, stderr: string, callback: callable|null}>|null */ private $expectations = null; /** @@ -43,19 +43,20 @@ class ProcessExecutorMock extends ProcessExecutor private $log = array(); /** - * @param array $expectations - * @param bool $strict set to true if you want to provide *all* expected commands, and not just a subset you are interested in testing - * @param array{return: int, stdout?: string, stderr?: string} $defaultHandler default command handler for undefined commands if not in strict mode + * @param array, return?: int, stdout?: string, stderr?: string, callback?: callable}> $expectations + * @param bool $strict set to true if you want to provide *all* expected commands, and not just a subset you are interested in testing + * @param array{return: int, stdout?: string, stderr?: string} $defaultHandler default command handler for undefined commands if not in strict mode * * @return void */ public function expects(array $expectations, $strict = false, array $defaultHandler = array('return' => 0, 'stdout' => '', 'stderr' => '')) { + /** @var array{cmd: string|list, return?: int, stdout?: string, stderr?: string, callback?: callable} $default */ $default = array('cmd' => '', 'return' => 0, 'stdout' => '', 'stderr' => '', 'callback' => null); $this->expectations = array_map(function ($expect) use ($default) { if (is_string($expect)) { $expect = array('cmd' => $expect); - } elseif ($diff = array_diff_key(array_merge($default, $expect), $default)) { + } elseif (count($diff = array_diff_key(array_merge($default, $expect), $default)) > 0) { throw new \UnexpectedValueException('Unexpected keys in process execution step: '.implode(', ', array_keys($diff))); } @@ -74,7 +75,7 @@ public function assertComplete(): void if (count($this->expectations) > 0) { $expectations = array_map(function ($expect) { - return $expect['cmd']; + return is_array($expect['cmd']) ? implode(' ', $expect['cmd']) : $expect['cmd']; }, $this->expectations); throw new AssertionFailedError( 'There are still '.count($this->expectations).' expected process calls which have not been consumed:'.PHP_EOL. @@ -106,7 +107,7 @@ public function executeTty($command, $cwd = null) } /** - * @param string $command + * @param string|list $command * @param string $cwd * @param bool $tty * @param callable $output @@ -119,7 +120,8 @@ private function doExecute($command, $cwd, $tty, &$output = null) $callback = is_callable($output) ? $output : array($this, 'outputHandler'); - $this->log[] = $command; + $commandString = is_array($command) ? implode(' ', $command) : $command; + $this->log[] = $commandString; if (is_array($this->expectations) && count($this->expectations) > 0 && $command === $this->expectations[0]['cmd']) { $expect = array_shift($this->expectations); @@ -135,8 +137,8 @@ private function doExecute($command, $cwd, $tty, &$output = null) $return = $this->defaultHandler['return']; } else { throw new AssertionFailedError( - 'Received unexpected command "'.$command.'" in "'.$cwd.'"'.PHP_EOL. - (is_array($this->expectations) && count($this->expectations) > 0 ? 'Expected "'.$this->expectations[0]['cmd'].'" at this point.' : 'Expected no more calls at this point.').PHP_EOL. + 'Received unexpected command '.var_export($command, true).' in "'.$cwd.'"'.PHP_EOL. + (is_array($this->expectations) && count($this->expectations) > 0 ? 'Expected '.var_export($this->expectations[0]['cmd'], true).' at this point.' : 'Expected no more calls at this point.').PHP_EOL. 'Received calls:'.PHP_EOL.implode(PHP_EOL, array_slice($this->log, 0, -1)) ); } diff --git a/tests/Composer/Test/Package/Loader/RootPackageLoaderTest.php b/tests/Composer/Test/Package/Loader/RootPackageLoaderTest.php index 462000325027..252fb4840e2b 100644 --- a/tests/Composer/Test/Package/Loader/RootPackageLoaderTest.php +++ b/tests/Composer/Test/Package/Loader/RootPackageLoaderTest.php @@ -123,7 +123,7 @@ public function testFeatureBranchPrettyVersion() $process = $this->getProcessExecutorMock(); $process->expects(array( array( - 'cmd' => 'git branch -a --no-color --no-abbrev -v', + 'cmd' => ['git', 'branch', '-a', '--no-color', '--no-abbrev', '-v'], 'stdout' => "* latest-production 38137d2f6c70e775e137b2d8a7a7d3eaebf7c7e5 Commit message\n master 4f6ed96b0bc363d2aa4404c3412de1c011f67c66 Commit message\n", ), 'git rev-list master..latest-production', @@ -151,7 +151,7 @@ public function testNonFeatureBranchPrettyVersion() $process = $this->getProcessExecutorMock(); $process->expects(array( array( - 'cmd' => 'git branch -a --no-color --no-abbrev -v', + 'cmd' => ['git', 'branch', '-a', '--no-color', '--no-abbrev', '-v'], 'stdout' => "* latest-production 38137d2f6c70e775e137b2d8a7a7d3eaebf7c7e5 Commit message\n master 4f6ed96b0bc363d2aa4404c3412de1c011f67c66 Commit message\n", ), ), true); diff --git a/tests/Composer/Test/Package/Version/VersionGuesserTest.php b/tests/Composer/Test/Package/Version/VersionGuesserTest.php index 6bb2df0f95cd..58f5d20cb6eb 100644 --- a/tests/Composer/Test/Package/Version/VersionGuesserTest.php +++ b/tests/Composer/Test/Package/Version/VersionGuesserTest.php @@ -35,7 +35,7 @@ public function testHgGuessVersionReturnsData() $process = $this->getProcessExecutorMock(); $process->expects(array( - array('cmd' => 'git branch -a --no-color --no-abbrev -v', 'return' => 128), + array('cmd' => ['git', 'branch', '-a', '--no-color', '--no-abbrev', '-v'], 'return' => 128), array('cmd' => 'git describe --exact-match --tags', 'return' => 128), array('cmd' => 'git log --pretty="%H" -n1 HEAD'.GitUtil::getNoShowSignatureFlag($process), 'return' => 128), array('cmd' => 'hg branch', 'return' => 0, 'stdout' => $branch), @@ -63,7 +63,7 @@ public function testGuessVersionReturnsData() $process = $this->getProcessExecutorMock(); $process->expects(array( array( - 'cmd' => 'git branch -a --no-color --no-abbrev -v', + 'cmd' => ['git', 'branch', '-a', '--no-color', '--no-abbrev', '-v'], 'stdout' => "* master $commitHash Commit message\n(no branch) $anotherCommitHash Commit message\n", ), ), true); @@ -88,7 +88,7 @@ public function testGuessVersionDoesNotSeeCustomDefaultBranchAsNonFeatureBranch( $process = $this->getProcessExecutorMock(); $process->expects(array( array( - 'cmd' => 'git branch -a --no-color --no-abbrev -v', + 'cmd' => ['git', 'branch', '-a', '--no-color', '--no-abbrev', '-v'], // Assumption here is that arbitrary would be the default branch 'stdout' => " arbitrary $commitHash Commit message\n* current $anotherCommitHash Another message\n", ), @@ -111,7 +111,7 @@ public function testGuessVersionReadsAndRespectsNonFeatureBranchesConfigurationF $process = $this->getProcessExecutorMock(); $process->expects(array( array( - 'cmd' => 'git branch -a --no-color --no-abbrev -v', + 'cmd' => ['git', 'branch', '-a', '--no-color', '--no-abbrev', '-v'], 'stdout' => " arbitrary $commitHash Commit message\n* feature $anotherCommitHash Another message\n", ), array( @@ -139,7 +139,7 @@ public function testGuessVersionReadsAndRespectsNonFeatureBranchesConfigurationF $process = $this->getProcessExecutorMock(); $process->expects(array( array( - 'cmd' => 'git branch -a --no-color --no-abbrev -v', + 'cmd' => ['git', 'branch', '-a', '--no-color', '--no-abbrev', '-v'], 'stdout' => " latest-testing $commitHash Commit message\n* feature $anotherCommitHash Another message\n", ), array( @@ -167,7 +167,7 @@ public function testGuessVersionReadsAndRespectsNonFeatureBranchesConfigurationF $process = $this->getProcessExecutorMock(); $process->expects(array( array( - 'cmd' => 'git branch -a --no-color --no-abbrev -v', + 'cmd' => ['git', 'branch', '-a', '--no-color', '--no-abbrev', '-v'], 'stdout' => "* latest-testing $commitHash Commit message\n current $anotherCommitHash Another message\n master $anotherCommitHash Another message\n", ), ), true); @@ -190,7 +190,7 @@ public function testDetachedHeadBecomesDevHash() $process = $this->getProcessExecutorMock(); $process->expects(array( array( - 'cmd' => 'git branch -a --no-color --no-abbrev -v', + 'cmd' => ['git', 'branch', '-a', '--no-color', '--no-abbrev', '-v'], 'stdout' => "* (no branch) $commitHash Commit message\n", ), 'git describe --exact-match --tags', @@ -211,7 +211,7 @@ public function testDetachedFetchHeadBecomesDevHashGit2() $process = $this->getProcessExecutorMock(); $process->expects(array( array( - 'cmd' => 'git branch -a --no-color --no-abbrev -v', + 'cmd' => ['git', 'branch', '-a', '--no-color', '--no-abbrev', '-v'], 'stdout' => "* (HEAD detached at FETCH_HEAD) $commitHash Commit message\n", ), 'git describe --exact-match --tags', @@ -232,7 +232,7 @@ public function testDetachedCommitHeadBecomesDevHashGit2() $process = $this->getProcessExecutorMock(); $process->expects(array( array( - 'cmd' => 'git branch -a --no-color --no-abbrev -v', + 'cmd' => ['git', 'branch', '-a', '--no-color', '--no-abbrev', '-v'], 'stdout' => "* (HEAD detached at 03a15d220) $commitHash Commit message\n", ), 'git describe --exact-match --tags', @@ -251,7 +251,7 @@ public function testTagBecomesVersion() $process = $this->getProcessExecutorMock(); $process->expects(array( array( - 'cmd' => 'git branch -a --no-color --no-abbrev -v', + 'cmd' => ['git', 'branch', '-a', '--no-color', '--no-abbrev', '-v'], 'stdout' => "* (HEAD detached at v2.0.5-alpha2) 433b98d4218c181bae01865901aac045585e8a1a Commit message\n", ), array( @@ -273,7 +273,7 @@ public function testTagBecomesPrettyVersion() $process = $this->getProcessExecutorMock(); $process->expects(array( array( - 'cmd' => 'git branch -a --no-color --no-abbrev -v', + 'cmd' => ['git', 'branch', '-a', '--no-color', '--no-abbrev', '-v'], 'stdout' => "* (HEAD detached at 1.0.0) c006f0c12bbbf197b5c071ffb1c0e9812bb14a4d Commit message\n", ), array( @@ -296,7 +296,7 @@ public function testInvalidTagBecomesVersion() $process = $this->getProcessExecutorMock(); $process->expects(array( array( - 'cmd' => 'git branch -a --no-color --no-abbrev -v', + 'cmd' => ['git', 'branch', '-a', '--no-color', '--no-abbrev', '-v'], 'stdout' => "* foo 03a15d220da53c52eddd5f32ffca64a7b3801bea Commit message\n", ), ), true); @@ -314,7 +314,7 @@ public function testNumericBranchesShowNicely() $process = $this->getProcessExecutorMock(); $process->expects(array( array( - 'cmd' => 'git branch -a --no-color --no-abbrev -v', + 'cmd' => ['git', 'branch', '-a', '--no-color', '--no-abbrev', '-v'], 'stdout' => "* 1.5 03a15d220da53c52eddd5f32ffca64a7b3801bea Commit message\n", ), ), true); @@ -333,7 +333,7 @@ public function testRemoteBranchesAreSelected() $process = $this->getProcessExecutorMock(); $process->expects(array( array( - 'cmd' => 'git branch -a --no-color --no-abbrev -v', + 'cmd' => ['git', 'branch', '-a', '--no-color', '--no-abbrev', '-v'], 'stdout' => "* feature-branch 03a15d220da53c52eddd5f32ffca64a7b3801bea Commit message\n". "remotes/origin/1.5 03a15d220da53c52eddd5f32ffca64a7b3801bea Commit message\n", ),