echo $exception->
getAsString();
} public function enhanceError(\Throwable
$exception): \Throwable
{ if ($exception instanceof OutOfMemoryError
) { return $exception;
} foreach ($this->
getErrorEnhancers() as $errorEnhancer) { if ($e =
$errorEnhancer->
enhance($exception)) { return $e;
} } return $exception;
} /**
* Override this method if you want to define more error enhancers.
*
* @return ErrorEnhancerInterface[]
*/