Merge pull request #10568 from creative-commoners/pulls/4/restore-err

MNT Use restore_error_handler()
This commit is contained in:
Guy Sartorelli 2022-11-04 09:29:51 +13:00 committed by GitHub
commit 00d1701d37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();
} }