Skip to content

Commit

Permalink
Remove scalar parameter type declaration (#10186)
Browse files Browse the repository at this point in the history
`string` can only be used in parameters starting from PHP 7.0.
  • Loading branch information
herndlm committed Oct 19, 2021
1 parent 6d37c1f commit f0cc9ae
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Composer/Util/Git.php
Expand Up @@ -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();

Expand Down

0 comments on commit f0cc9ae

Please sign in to comment.