Skip to content

Commit d2300c6

Browse files
committed
Fix PHPStan
1 parent a89c6f0 commit d2300c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@
2121

2222
date_default_timezone_set('UTC');
2323
assert($xlsxFastEditor->getWorkbookDateSystem() === 1900);
24+
// @phpstan-ignore staticMethod.internal
2425
assert(XlsxFastEditor::excelDateToDateTime(0.5, 1900)->format('c') === '1900-01-01T12:00:00+00:00');
26+
// @phpstan-ignore staticMethod.internal
2527
assert(XlsxFastEditor::excelDateToDateTime(32, 1900)->format('c') === '1900-02-01T00:00:00+00:00');
28+
// @phpstan-ignore staticMethod.internal
2629
assert(XlsxFastEditor::excelDateToDateTime(44865, 1904)->format('c') === '2026-11-01T00:00:00+00:00');
2730

2831
$sheet1 = $xlsxFastEditor->getWorksheetNumber('Sheet1');
@@ -82,6 +85,7 @@
8285
}
8386
assert($ex instanceof \InvalidArgumentException);
8487

88+
// @phpstan-ignore method.internal
8589
$cellD4 = $row4->getCell('D4');
8690
assert($cellD4 !== null);
8791
assert($cellD4->getPreviousCell()?->getNextCell()?->name() === 'D4');

0 commit comments

Comments
 (0)