MNT Use restore_error_handler()

This commit is contained in:
Steve Boyd 2022-11-03 16:19:17 +13:00
parent 00f0b01d0e
commit 7cfd827776

View File

@ -43,7 +43,7 @@ class DeprecationTest extends SapphireTest
protected function tearDown(): void
{
Deprecation::disable();
set_error_handler($this->oldHandler);
restore_error_handler();
$this->oldHandler = null;
parent::tearDown();
}