From 7cfd827776a6f9f8e03371676ea8da318bf791e1 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 3 Nov 2022 16:19:17 +1300 Subject: [PATCH] MNT Use restore_error_handler() --- tests/php/Dev/DeprecationTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }