mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #10568 from creative-commoners/pulls/4/restore-err
MNT Use restore_error_handler()
This commit is contained in:
commit
00d1701d37
@ -43,7 +43,7 @@ class DeprecationTest extends SapphireTest
|
|||||||
protected function tearDown(): void
|
protected function tearDown(): void
|
||||||
{
|
{
|
||||||
Deprecation::disable();
|
Deprecation::disable();
|
||||||
set_error_handler($this->oldHandler);
|
restore_error_handler();
|
||||||
$this->oldHandler = null;
|
$this->oldHandler = null;
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user