mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/17384] Ignore deprecated notices in test case error handler
PHPBB-17384
This commit is contained in:
parent
b22bcaa483
commit
85f7ffb585
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue