Skip to content

Commit 9773fdf

Browse files
committed
wip php 8.4 test
1 parent f16b25d commit 9773fdf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/bootstrap.php

+10
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@
1616
Tester\Environment::setupFunctions();
1717
date_default_timezone_set('Europe/Prague');
1818

19+
if (PHP_VERSION_ID >= 80400) {
20+
set_error_handler(function ($severity, $message, $file, $line) {
21+
if (str_contains($message, 'Mockery')) {
22+
return false;
23+
}
24+
25+
throw new ErrorException($message, 0, $severity, $file, $line);
26+
}, E_DEPRECATED);
27+
}
28+
1929

2030
function getTempDir(): string
2131
{

0 commit comments

Comments
 (0)