function FlattenException::getAllPrevious
Return value
self[]
2 calls to FlattenException::getAllPrevious()
- FlattenException::getAsString in vendor/
symfony/ error-handler/ Exception/ FlattenException.php - FlattenException::toArray in vendor/
symfony/ error-handler/ Exception/ FlattenException.php
File
-
vendor/
symfony/ error-handler/ Exception/ FlattenException.php, line 275
Class
- FlattenException
- FlattenException wraps a PHP Error or Exception to be able to serialize it.
Namespace
Symfony\Component\ErrorHandler\ExceptionCode
public function getAllPrevious() : array {
$exceptions = [];
$e = $this;
while ($e = $e->getPrevious()) {
$exceptions[] = $e;
}
return $exceptions;
}