From d13e17ec2531a0ced2c59c71d5b0ee509bd6ea89 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Wed, 14 Aug 2024 17:16:15 +0200 Subject: [PATCH] wip php 8.4 test --- tests/bootstrap.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 0c740f092..db6396673 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -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 {