diff --git a/tests/php/Dev/DeprecationTest.php b/tests/php/Dev/DeprecationTest.php index ed6018714..b447866a0 100644 --- a/tests/php/Dev/DeprecationTest.php +++ b/tests/php/Dev/DeprecationTest.php @@ -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(); }