mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-30 12:07:56 +00:00
Extra Annotation
This commit is contained in:
@@ -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