--TEST-- Calling cancel() and then reject() should not report unhandled rejection --INI-- # suppress legacy PHPUnit 7 warning for Xdebug 3 xdebug.default_enable= --FILE-- promise()->cancel(); $deferred->reject(new RuntimeException('foo')); echo 'void' . PHP_EOL; ?> --EXPECT-- void