<?php function (mixed $throwable) use (&$rejected, &$rejectedThrowable, &$fiber): void {
if (!$throwable instanceof \Throwable) {
$throwable = new \UnexpectedValueException(
'Promise rejected with unexpected value of type ' . (is_object($throwable) ? get_class($throwable) : gettype($throwable))
);
}