[ticket/17384] Ignore deprecated notices in test case error handler

PHPBB-17384
This commit is contained in:
Marc Alexander 2024-08-31 09:02:53 +02:00
parent b22bcaa483
commit 85f7ffb585
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -104,7 +104,7 @@ class phpbb_test_case_helpers
} }
} }
public function setExpectedTriggerError($errno, $message = '') public function setExpectedTriggerError($errno, $message = ''): void
{ {
set_error_handler( set_error_handler(
static function ($errno, $errstr) static function ($errno, $errstr)
@ -112,7 +112,7 @@ class phpbb_test_case_helpers
restore_error_handler(); restore_error_handler();
throw new Exception($errstr, $errno); throw new Exception($errstr, $errno);
}, },
E_ALL E_ALL ^ E_DEPRECATED
); );
$this->expectedTriggerError = true; $this->expectedTriggerError = true;