Installer syntax error in HttpClient
GamesmenJordan opened this issue · comments
Changes added in a86d1c0 to HttpClient cause a syntax error (at least in PHP 8.1).
PHP Parse error: syntax error, unexpected token "::", expecting variable in /tmp/composer-setup.php on line 1341
Offending line is how this static variable is declared.
class HttpClient {
/** @var null|string */
private static self::$caPath;
Pinging @Seldaek as this issue needs to be addressed urgently.
As a quick workaround i used a commit from two weeks ago - so with https://raw.githubusercontent.com/composer/getcomposer.org/66b5bbc00537a98681d27a46d86df800e700db08/web/installer instead of https://getcomposer.org/installer the installer works.
Looks like a fix was just pushed.
It's fixed now, sorry for the trouble 😅 It was simply a typo I missed in an installer script change, the composer.phar file was fine.