mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-19 08:01:27 +02:00
[ticket/17384] Ignore deprecated notices in test case error handler
PHPBB-17384
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user