mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-10-08 12:56:39 +00:00
Upgrade Mitoteam to Beta Version
I had been trapping its errors in test bootstrap, but that no longer seems to work.
This commit is contained in:
@@ -6,9 +6,6 @@ setlocale(LC_ALL, 'en_US.utf8');
|
||||
|
||||
function phpunit10ErrorHandler(int $errno, string $errstr, string $filename, int $lineno): bool
|
||||
{
|
||||
if (strIncrement85(PHP_VERSION_ID, $errno, $errstr, $filename)) {
|
||||
return true; // message suppressed - stop error handling
|
||||
}
|
||||
$x = error_reporting() & $errno;
|
||||
if (
|
||||
in_array(
|
||||
@@ -34,18 +31,6 @@ function phpunit10ErrorHandler(int $errno, string $errstr, string $filename, int
|
||||
return false; // continue error handling
|
||||
}
|
||||
|
||||
function strIncrement85(int $version, int $errno, string $errstr, string $filename): bool
|
||||
{
|
||||
if ($version < 80500 || $errno !== E_DEPRECATED) {
|
||||
return false;
|
||||
}
|
||||
if (preg_match('/canonical/', $errstr) === 1 && preg_match('/mitoteam/', $filename) === 1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!method_exists(PHPUnit\Framework\TestCase::class, 'setOutputCallback')) {
|
||||
set_error_handler('phpunit10ErrorHandler');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user