composer / getcomposer.org

getcomposer.org sources

Home Page:http://getcomposer.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

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.