From 14fcfc3ae171c3b6f526f264d18cedafac6e59a4 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 23 Feb 2022 11:39:26 +0100 Subject: [PATCH] Update baseline (2244 errors) --- phpstan/baseline.neon | 443 +----------------------------------------- 1 file changed, 9 insertions(+), 434 deletions(-) diff --git a/phpstan/baseline.neon b/phpstan/baseline.neon index 220027402..763f33219 100644 --- a/phpstan/baseline.neon +++ b/phpstan/baseline.neon @@ -117,7 +117,7 @@ parameters: - message: "#^Parameter \\#1 \\$path of function realpath expects string, string\\|false given\\.$#" - count: 3 + count: 2 path: ../src/Composer/Autoload/AutoloadGenerator.php - @@ -127,7 +127,7 @@ parameters: - message: "#^Parameter \\#1 \\$str of function strtr expects string, string\\|false given\\.$#" - count: 3 + count: 2 path: ../src/Composer/Autoload/AutoloadGenerator.php - @@ -240,16 +240,6 @@ parameters: 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 @@ -325,11 +315,6 @@ parameters: 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: "#^Only booleans are allowed in an if condition, Composer\\\\Composer\\|null given\\.$#" count: 1 @@ -395,11 +380,6 @@ parameters: 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: "#^Only booleans are allowed in a negated boolean, Composer\\\\Semver\\\\Constraint\\\\ConstraintInterface\\|null given\\.$#" count: 1 @@ -470,11 +450,6 @@ parameters: 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 @@ -485,11 +460,6 @@ parameters: 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 @@ -515,21 +485,6 @@ parameters: count: 2 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 @@ -600,11 +555,6 @@ parameters: 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 @@ -795,11 +745,6 @@ parameters: count: 8 path: ../src/Composer/Command/InitCommand.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 \\|\\|, mixed given on the right side\\.$#" count: 3 @@ -830,16 +775,6 @@ parameters: count: 3 path: ../src/Composer/Command/ReinstallCommand.php - - - message: "#^Cannot call method getLockedRepository\\(\\) on Composer\\\\Package\\\\Locker\\|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 @@ -875,11 +810,6 @@ parameters: count: 4 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: 3 @@ -940,11 +870,6 @@ parameters: count: 1 path: ../src/Composer/Command/RunScriptCommand.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 @@ -1130,11 +1055,6 @@ parameters: count: 2 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 getPrettyVersion\\(\\) on Composer\\\\Package\\\\BasePackage\\|int\\.$#" count: 1 @@ -1145,11 +1065,6 @@ parameters: 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: "#^Foreach overwrites \\$packages with its value variable\\.$#" count: 1 @@ -1455,21 +1370,6 @@ parameters: 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 getPlatformOverrides\\(\\) on Composer\\\\Package\\\\Locker\\|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 @@ -1505,21 +1405,6 @@ parameters: count: 3 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 a negated boolean, array\\ given\\.$#" count: 1 @@ -1710,11 +1595,6 @@ parameters: 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 @@ -1745,21 +1625,11 @@ parameters: 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 @@ -1820,21 +1690,11 @@ parameters: 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: "#^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 @@ -2340,11 +2200,6 @@ parameters: 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 @@ -2725,11 +2580,6 @@ parameters: 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 @@ -2745,11 +2595,6 @@ parameters: 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 @@ -2990,11 +2835,6 @@ parameters: count: 1 path: ../src/Composer/Factory.php - - - message: "#^Parameter \\#1 \\$str 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 @@ -3002,7 +2842,7 @@ parameters: - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 5 + count: 3 path: ../src/Composer/Factory.php - @@ -3625,21 +3465,11 @@ parameters: 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 @@ -3795,14 +3625,9 @@ parameters: 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 + count: 1 path: ../src/Composer/Package/Loader/RootPackageLoader.php - @@ -4080,11 +3905,6 @@ parameters: count: 1 path: ../src/Composer/Platform/Runtime.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 @@ -4115,11 +3935,6 @@ parameters: 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 @@ -4137,7 +3952,7 @@ parameters: - message: "#^Only booleans are allowed in an if condition, Composer\\\\Repository\\\\InstalledRepositoryInterface\\|null given\\.$#" - count: 3 + count: 2 path: ../src/Composer/Plugin/PluginManager.php - @@ -4475,11 +4290,6 @@ parameters: 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 @@ -4647,7 +4457,7 @@ parameters: - message: "#^Parameter \\#2 \\$prettyVersion of method Composer\\\\Repository\\\\PlatformRepository\\:\\:addLibrary\\(\\) expects string, string\\|null given\\.$#" - count: 4 + count: 3 path: ../src/Composer/Repository/PlatformRepository.php - @@ -4670,11 +4480,6 @@ parameters: 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 @@ -5170,11 +4975,6 @@ parameters: 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 @@ -5460,11 +5260,6 @@ parameters: 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 \\$fp of function fclose expects resource, resource\\|false given\\.$#" count: 4 @@ -5885,11 +5680,6 @@ parameters: 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: "#^Argument of an invalid type array\\\\>\\|string supplied for foreach, only iterables are supported\\.$#" count: 1 @@ -5985,11 +5775,6 @@ parameters: 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 @@ -6115,11 +5900,6 @@ parameters: 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 \\$fp of function fclose expects resource, resource\\|false given\\.$#" count: 2 @@ -6415,16 +6195,6 @@ parameters: 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 @@ -6595,11 +6365,6 @@ parameters: 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 @@ -6650,16 +6415,6 @@ parameters: 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 @@ -6700,11 +6455,6 @@ parameters: 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 @@ -6775,26 +6525,6 @@ parameters: 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 @@ -6805,36 +6535,6 @@ parameters: 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 @@ -6850,11 +6550,6 @@ parameters: 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 @@ -6905,21 +6600,11 @@ parameters: 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 @@ -6930,11 +6615,6 @@ parameters: 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 @@ -6988,21 +6668,11 @@ parameters: 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 @@ -7083,11 +6753,6 @@ parameters: 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 @@ -7113,16 +6778,6 @@ parameters: 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: "#^Offset 'url' on array\\{url\\: string, options\\?\\: array, status\\?\\: int, body\\?\\: string, headers\\?\\: array\\\\} on left side of \\?\\? always exists and is not nullable\\.$#" count: 1 @@ -7173,11 +6828,6 @@ parameters: 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: "#^Composer\\\\Test\\\\Mock\\\\VersionGuesserMock\\:\\:__construct\\(\\) does not call parent constructor from Composer\\\\Package\\\\Version\\\\VersionGuesser\\.$#" count: 1 @@ -7198,61 +6848,31 @@ parameters: 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 - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" count: 1 path: ../tests/Composer/Test/Package/Archiver/ArchiverTest.php - - - message: "#^Parameter \\#1 \\$url of method Composer\\\\Package\\\\Package\\:\\:setSourceUrl\\(\\) expects string, string\\|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 - - - message: "#^Parameter \\#1 \\$directory of function chdir expects string, string\\|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 - - message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#" count: 1 path: ../tests/Composer/Test/Package/Archiver/ZipArchiverTest.php - - - message: "#^Parameter \\#1 \\$directory of function chdir expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/Package/Archiver/ZipArchiverTest.php - - message: "#^Parameter \\#1 \\$sources of method Composer\\\\Package\\\\Archiver\\\\ZipArchiver\\:\\:archive\\(\\) expects string, string\\|null given\\.$#" count: 1 path: ../tests/Composer/Test/Package/Archiver/ZipArchiverTest.php - - - message: "#^Parameter \\#3 \\$currentWorkDir of method Composer\\\\Test\\\\Package\\\\Archiver\\\\ZipArchiverTest\\:\\:writeFile\\(\\) expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/Package/Archiver/ZipArchiverTest.php - - message: "#^Implicit array creation is not allowed \\- variable \\$provider does not exist\\.$#" count: 1 @@ -7260,7 +6880,7 @@ parameters: - message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#" - count: 2 + count: 1 path: ../tests/Composer/Test/Package/Dumper/ArrayDumperTest.php - @@ -7353,16 +6973,6 @@ parameters: count: 1 path: ../tests/Composer/Test/Question/StrictConfirmationQuestionTest.php - - - message: "#^Call to an undefined method Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\:\\:setType\\(\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/Repository/ArrayRepositoryTest.php - - - - message: "#^Parameter \\#1 \\$package of method Composer\\\\Test\\\\TestCase\\:\\:getAliasPackage\\(\\) expects Composer\\\\Package\\\\Package, Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage given\\.$#" - count: 1 - path: ../tests/Composer/Test/Repository/ArrayRepositoryTest.php - - message: "#^Cannot call method getDistType\\(\\) on Composer\\\\Package\\\\BasePackage\\|null\\.$#" count: 1 @@ -7388,34 +6998,14 @@ parameters: count: 1 path: ../tests/Composer/Test/Repository/CompositeRepositoryTest.php - - - message: "#^Call to an undefined method Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\:\\:setType\\(\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/Repository/FilesystemRepositoryTest.php - - message: "#^Dynamic call to static method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\)\\.$#" 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 - - - - message: "#^Call to an undefined method Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\:\\:setProvides\\(\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/Repository/InstalledRepositoryTest.php - - - - message: "#^Call to an undefined method Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage\\:\\:setReplaces\\(\\)\\.$#" - count: 1 - path: ../tests/Composer/Test/Repository/InstalledRepositoryTest.php - - message: "#^Parameter \\#1 \\$path of function realpath expects string, string\\|false given\\.$#" - count: 3 + count: 2 path: ../tests/Composer/Test/Repository/PathRepositoryTest.php - @@ -7523,21 +7113,6 @@ parameters: count: 1 path: ../tests/Composer/Test/Repository/VcsRepositoryTest.php - - - message: "#^Parameter \\#1 \\$directory of function chdir expects string, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/Repository/VcsRepositoryTest.php - - - - message: "#^Parameter \\#3 \\$cwd of method Composer\\\\Util\\\\ProcessExecutor\\:\\:execute\\(\\) expects string\\|null, string\\|false given\\.$#" - count: 1 - path: ../tests/Composer/Test/Repository/VcsRepositoryTest.php - - - - message: "#^Method Composer\\\\Test\\\\TestCase\\:\\:getPackage\\(\\) should return Composer\\\\Package\\\\CompleteAliasPackage\\|Composer\\\\Package\\\\CompletePackage but returns PackageClass of Composer\\\\Package\\\\PackageInterface\\.$#" - count: 1 - path: ../tests/Composer/Test/TestCase.php - - message: "#^Method Composer\\\\Test\\\\TestCase\\:\\:getUniqueTmpDirectory\\(\\) should return string but returns string\\|false\\.$#" count: 1 @@ -7575,7 +7150,7 @@ parameters: - message: "#^Only booleans are allowed in an if condition, string given\\.$#" - count: 2 + count: 1 path: ../tests/Composer/Test/Util/Http/ProxyManagerTest.php -