1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-18 23:51:49 +02:00

[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

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(
static function ($errno, $errstr)
@@ -112,7 +112,7 @@ class phpbb_test_case_helpers
restore_error_handler();
throw new Exception($errstr, $errno);
},
E_ALL
E_ALL ^ E_DEPRECATED
);
$this->expectedTriggerError = true;