mirror of
https://github.com/filp/whoops.git
synced 2026-09-17 05:06:22 +00:00
Run: refactor the reverse loop slightly
This commit is contained in:
+1
-3
@@ -239,9 +239,7 @@ class Run
|
||||
// Just in case there are no handlers:
|
||||
$handlerResponse = null;
|
||||
|
||||
for($i = count($this->handlerStack) - 1; $i >= 0; $i--) {
|
||||
$handler = $this->handlerStack[$i];
|
||||
|
||||
foreach (array_reverse($this->handlerStack) as $handler) {
|
||||
$handler->setRun($this);
|
||||
$handler->setInspector($inspector);
|
||||
$handler->setException($exception);
|
||||
|
||||
Reference in New Issue
Block a user