Description:
Upon updating my project dependencies, my Discord bot built with team-reflex/discord-php started throwing a TypeError. The error message suggests a returned value of React\Promise\Promise where an instance of React\Promise\ExtendedPromiseInterface was expected.
Steps to Reproduce:
Update project dependencies with composer update.
Run the Discord PHP bot.
Expected behavior:
The bot runs without throwing any TypeErrors.
Actual behavior:
The bot throws the following error:
Fatal error: Uncaught TypeError: Discord\Http\Drivers\React::runRequest(): Return value must be of type React\Promise\ExtendedPromiseInterface, React\Promise\Promise returned in /Users/gpriday/Projects/DiscordBotTest/vendor/discord-php/http/src/Discord/Drivers/React.php:62
Stack trace:
Further Details:
The react/promise dependency updated to version v3.0.0, which seems to be causing this issue. When I lock my project to use react/promise version 2.10.*, the error is resolved and the bot operates as expected.
Description: Upon updating my project dependencies, my Discord bot built with
team-reflex/discord-php
started throwing a TypeError. The error message suggests a returned value ofReact\Promise\Promise
where an instance ofReact\Promise\ExtendedPromiseInterface
was expected.Steps to Reproduce:
composer update
.Expected behavior: The bot runs without throwing any TypeErrors.
Actual behavior: The bot throws the following error:
Further Details: The
react/promise
dependency updated to versionv3.0.0
, which seems to be causing this issue. When I lock my project to usereact/promise
version2.10.*
, the error is resolved and the bot operates as expected.Environment:
team-reflex/discord-php
version: v10.0.0-RC5react/promise
version: v3.0.0 (issue arises), v2.10.* (issue resolved)team-reflex/discord-php
@ RC5 is a dependency.