Skip to content

Outdated reactphp/promise in bundled composer phar breaks in PHP 8.5 with Case statements followed by a semicolon (;) are deprecated #270

@Synchro

Description

@Synchro

Description

This is happening in this GH action run.

Run ${GITHUB_ACTION_PATH}/bin/composer_paths.sh \
  ${GITHUB_ACTION_PATH}/bin/composer_paths.sh \
    "" \
    "" \
    "/usr/bin/php" \
    "composer"
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    COMPOSER_PROCESS_TIMEOUT: 0
    COMPOSER_NO_INTERACTION: 1
    COMPOSER_NO_AUDIT: 1
PHP Deprecated:  Case statements followed by a semicolon (;) are deprecated, use a colon (:) instead in phar:///usr/local/bin/composer/vendor/react/promise/src/functions.php on line 300
Deprecated: Case statements followed by a semicolon (;) are deprecated, use a colon (:) instead in phar:///usr/local/bin/composer/vendor/react/promise/src/functions.php on line 300
Composer version 2.8.10 2025-07-10 19:08:33
Deprecated: Case statements followed by a semicolon (;) are deprecated, use a colon (:) instead in phar:///usr/local/bin/composer/vendor/react/promise/src/functions.php on line 300
/home/runner/.cache/composer'
Error: Unable to process file command 'output' successfully.
Error: Invalid format 'Deprecated: Case statements followed by a semicolon (;) are deprecated, use a colon (:) instead in phar:///usr/local/bin/composer/vendor/react/promise/src/functions.php on line 300'

This syntax appears in an outdated version of reactphp/promise which was fixed in that package in November 2024, and released in v3.3.0.

In this output, composer is version 2.8.10, which is current, and it downloads a correct zip version 3.3.0 of the promise package, which does not contain the deprecated syntax. Is there a second copy of composer involved somewhere in this stack? Or is the phar built from different dependencies?

Steps to reproduce

  1. Run the composer-install action under PHP 8.5.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions