From f0cc9aeb01a9179748c5c6fdb2b8cf009f15708b Mon Sep 17 00:00:00 2001 From: Martin Herndl Date: Tue, 19 Oct 2021 13:10:21 +0200 Subject: [PATCH] Remove scalar parameter type declaration (#10186) `string` can only be used in parameters starting from PHP 7.0. --- src/Composer/Util/Git.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Composer/Util/Git.php b/src/Composer/Util/Git.php index 8eab2c7c7a31..9d6a5f71659b 100644 --- a/src/Composer/Util/Git.php +++ b/src/Composer/Util/Git.php @@ -422,7 +422,13 @@ public static function getVersion(ProcessExecutor $process) return self::$version; } - private function maskCredentials(string $error, array $credentials) + /** + * @param string $error + * @param string[] $credentials + * + * @return string + */ + private function maskCredentials($error, array $credentials) { $maskedCredentials = array();