public toThrowable ( ) : |
||
Результат |
public function toThrowable()
{
$class = $this->class;
$prev = $this->prev !== null ? $this->prev->toThrowable() : $this->prev;
return preg_match('#^(\\\\?)Kraken#si', $class) ? new $class($this->message, $prev) : new $class($this->message, 0, $prev);
}
/** * @see Promise::getReason */ protected function getReason() { return $this->reason instanceof ThrowableProxy ? $this->reason->toThrowable() : $this->reason; }