Skip to content

Upgrade to react/promise version 3.3.0#60

Merged
lippserd merged 2 commits intomainfrom
upgrade-react-promise
Feb 27, 2026
Merged

Upgrade to react/promise version 3.3.0#60
lippserd merged 2 commits intomainfrom
upgrade-react-promise

Conversation

@sukhwinder33445
Copy link
Contributor

@sukhwinder33445 sukhwinder33445 commented Jan 13, 2026

  • Upgrade react/promise to current latest version 3.3.0, for PHP 8.5 support.
    • PHP 8.4 support was introduced in v3.2.0.
    • PHP 8.5 support was inteoduced in v3.3.0.
  • Method resolve() now requires an argument.
  • Method always() is deprecated, use finally() instead.
  • Interface ExtendedPromiseInterface has been replaced by PromiseInterface since v3.0.0.

The following modules use these interfaces because they implement Task:

Just for reference: There are other modules like director and vspheredb that are subject to the same changes, not because they use the scheduler, but because they use ReactPHP themselves.

refs #56

@cla-bot cla-bot bot added the cla/signed CLA is signed by all contributors of a PR label Jan 13, 2026
@sukhwinder33445 sukhwinder33445 mentioned this pull request Jan 13, 2026
Updates `react/promise` from 2.11.0 to 3.3.0 to support PHP 8.5:

- PHP 8.4 support was introduced in 3.2.0:
  https://github.com/reactphp/promise/releases/tag/v3.2.0

- PHP 8.5 support was introduced in 3.3.0:
  https://github.com/reactphp/promise/releases/tag/v3.3.0
- Can no longer `resolve()` a promise without a value, use `null` instead.
- Method `always()` is deprecated, use `finally()` instead.
- `(Extended|Cancellable)PromiseInterface` are removed since `v3.0.0`:
  https://reactphp.org/promise/changelog.html#300-2023-07-11
@lippserd lippserd force-pushed the upgrade-react-promise branch from 6e2f91e to 9c59515 Compare February 27, 2026 10:07
@lippserd lippserd changed the title Upgrade lib react/promise Upgrade to react/promise version 3.3.0 Feb 27, 2026
@lippserd lippserd merged commit ae23698 into main Feb 27, 2026
13 checks passed
@lippserd lippserd deleted the upgrade-react-promise branch February 27, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla/signed CLA is signed by all contributors of a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants