Merge pull request #4934 from oleibman/unusedtest

Delete Unused Test Member
This commit is contained in:
oleibman
2026-07-03 03:27:08 +00:00
committed by GitHub
2 changed files with 2 additions and 21 deletions
@@ -1,20 +0,0 @@
<?php
/**
* For the full copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
namespace {
if (!class_exists(DateMalformedStringException::class)) {
/**
* Class DateMalformedStringException
* Polyfill class for the DateMalformedStringException.
*/
class DateMalformedStringException extends Exception
{
}
}
}
@@ -352,9 +352,10 @@ class DateTest extends TestCase
/**
* Starting with PHP 8.3, DateTime::modify() throws a DateMalformedStringException, and we are not wrapping
* the E_WARNING into a PhpSpreadsheetException.
* Phpstan wants to flag the statement until < Php8.3 is no longer a possibility.
*/
if (PHP_VERSION_ID >= 80300) {
$this->expectException(DateMalformedStringException::class);
$this->expectException(DateMalformedStringException::class); // @phpstan-ignore-line
} else {
$this->expectException(PhpSpreadsheetException::class);
}