--TEST-- Calling cancel() that rejects should not report unhandled rejection --INI-- # suppress legacy PHPUnit 7 warning for Xdebug 3 xdebug.default_enable= --FILE-- promise()->cancel(); echo 'void' . PHP_EOL; ?> --EXPECT-- void