Skip to content

Conversation

@Al2Klimov
Copy link
Member

as an alias for its base interface, PromiseInterface.

Now our code works with the latest React\Promise and has time to switch to PromiseInterface.

This PR is based on f4e7375 which is 1 commit behind #82's c5f5889. The latter downgrades React\Promise which is explicitly not desired for my solution here.

TODO

sukhwinder33445 and others added 12 commits November 28, 2025 12:33
- Add additional patch for still missing non canonical cast from (Shardj/zf1-future#509)
- Remove patch to see if it is still required or not
- It is required for x509 module
- Cannot install `react/http` (used in notifications module) otherwise, because it requires psr/http-message:^1.0
- It is used in notifications module
The patch has been merged to master.
as an alias for its base interface, PromiseInterface.

Now our code works with the latest React\Promise and has time to switch to PromiseInterface.
@cla-bot cla-bot bot added the cla/signed label Jan 19, 2026
Copy link
Member Author

@Al2Klimov Al2Klimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test

(new ReflectionClass(ExtendedPromiseInterface::class))->getFileName()

Before

Class "React\Promise\ExtendedPromiseInterface" does not exist

After

/nix/store/dh4p4c5mwad7ccivmfy2fhbd9hr12hr9-icingaweb2-thirdparty-0.13.1/vendor/react/promise/src/PromiseInterface.php

@Al2Klimov Al2Klimov requested a review from lippserd January 19, 2026 12:20
@Al2Klimov
Copy link
Member Author

The catch is, I had to remove vendor/react/promise/, React\Promise v2, from icinga-php-library. On my machine, ipl wins against thirdparty during autoloading.

@sukhwinder33445 sukhwinder33445 force-pushed the test/php-85 branch 5 times, most recently from 7ef92cd to 911f231 Compare January 20, 2026 15:44
@lippserd lippserd force-pushed the test/php-85 branch 2 times, most recently from 9a12a41 to 9a0f8ba Compare January 21, 2026 07:51
@Al2Klimov Al2Klimov closed this Jan 23, 2026
@Al2Klimov Al2Klimov deleted the ExtendedPromiseInterface branch January 23, 2026 09:23
@lippserd lippserd removed their request for review January 23, 2026 10:21
@lippserd
Copy link
Member

Justification for closing this PR: Icinga/ipl-scheduler#61 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants