Skip to content

Commit

Permalink
wip php 8.4 test
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 12, 2025
1 parent a0d1c8d commit d13e7e2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@
Tester\Environment::setupFunctions();
date_default_timezone_set('Europe/Prague');

if (PHP_VERSION_ID >= 80400) {
set_error_handler(function ($severity, $message, $file, $line) {
if (str_contains($message, 'Mockery')) {
return false;
}

throw new ErrorException($message, 0, $severity, $file, $line);
}, E_DEPRECATED);
}


function getTempDir(): string
{
Expand Down

0 comments on commit d13e7e2

Please sign in to comment.