From 986a260d1cc3ab8d8ac7cd51303e4ad48c56f989 Mon Sep 17 00:00:00 2001 From: nargil07 Date: Thu, 31 Mar 2022 05:12:31 -1000 Subject: [PATCH] Correction the function getComposerInformation in SvnDriver.php. (#10681) Sometimes the getBaseComposerInformation had an exception so we write in the cache a string value but the funtion want to return null or Array value. Now we write a empty string value if it happened --- src/Composer/Repository/Vcs/SvnDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Repository/Vcs/SvnDriver.php b/src/Composer/Repository/Vcs/SvnDriver.php index 96168e365..d6c7274fd 100644 --- a/src/Composer/Repository/Vcs/SvnDriver.php +++ b/src/Composer/Repository/Vcs/SvnDriver.php @@ -148,7 +148,7 @@ class SvnDriver extends VcsDriver throw $e; } // remember a not-existent composer.json - $composer = ''; + $composer = []; } if ($this->shouldCache($identifier)) {