clue · GitHub

Merged

Merged

Conversation

@clue

@clue clue changed the title Add new set_rejection_handler() function Add new set_rejection_handler() function for unhandled rejections

Jul 10, 2023

SimonFrings

WyriHaximus

@WyriHaximus

@clue

clue deleted the set-rejection-handler branch

July 11, 2023 10:00

roxblnfk


$message = 'Unhandled promise rejection with ' . \get_class($this->reason) . ': ' . $this->reason->getMessage() . ' in ' . $this->reason->getFile() . ':' . $this->reason->getLine() . PHP_EOL;
$message .= 'Stack trace:' . PHP_EOL . $this->reason->getTraceAsString();
$handler = set_rejection_handler(null);

Closed

@clue clue mentioned this pull request

May 23, 2024

Merged

@clue clue mentioned this pull request

Nov 19, 2024

Closed

@clue clue mentioned this pull request

Aug 8, 2025

Closed

@clue clue mentioned this pull request

Aug 18, 2025

Merged

Read the original on github.com ↗