Skip to content

Commit 0577c74

Browse files
authored
Merge pull request #4934 from oleibman/unusedtest
Delete Unused Test Member
2 parents bccdf28 + 7a69387 commit 0577c74

2 files changed

Lines changed: 2 additions & 21 deletions

File tree

tests/PhpSpreadsheetTests/Shared/DateMalformedStringException.php

Lines changed: 0 additions & 20 deletions
This file was deleted.

tests/PhpSpreadsheetTests/Shared/DateTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,10 @@ public function testInvalidDateModify(): void
352352
/**
353353
* Starting with PHP 8.3, DateTime::modify() throws a DateMalformedStringException, and we are not wrapping
354354
* the E_WARNING into a PhpSpreadsheetException.
355+
* Phpstan wants to flag the statement until < Php8.3 is no longer a possibility.
355356
*/
356357
if (PHP_VERSION_ID >= 80300) {
357-
$this->expectException(DateMalformedStringException::class);
358+
$this->expectException(DateMalformedStringException::class); // @phpstan-ignore-line
358359
} else {
359360
$this->expectException(PhpSpreadsheetException::class);
360361
}

0 commit comments

Comments
 (0)