mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-14 20:16:34 +00:00
Merge pull request #4934 from oleibman/unusedtest
Delete Unused Test Member
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user