Skip to content

Commit 4986438

Browse files
mvoriseksebastianbergmann
authored andcommitted
test in test must still open own error handler
1 parent a7ae68d commit 4986438

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Runner/ErrorHandler.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,7 @@ public function enable(): void
163163
return;
164164
}
165165

166-
$oldErrorHandler = set_error_handler($this);
167-
168-
if ($oldErrorHandler !== null) {
169-
restore_error_handler();
170-
171-
return;
172-
}
166+
set_error_handler($this);
173167

174168
$this->enabled = true;
175169

0 commit comments

Comments
 (0)