PhpSpreadsheet/tests/PhpSpreadsheetTests/Functional
oleibman 8258919d72
Phpstan Differences from Php7 to Php8 (#2631)
These changes were already implemented as PR #2428. They were, alas, regressed by PR #2585. If at first you don't succeed ...

As configured, Phpstan running under Php7 reports no errors. However, running under Php8, it reports 100 (!) errors. The vast majority of these are due to two reasons:
- renaming parameters in Php builtin functions in preparation for named parameters.
- using the new class GdImage rather than type resource as the argument type for many image-based functions.

Regardless of the cause, this will be a problem sooner or later. This PR is an attempt to get ahead of that problem. For source members, it tweaks only the Phpstan configuration files, without changing any PhpSpreadsheet code. For the small number of test members involved, the code is fixed. Php7 and Php8 both report no errors with this configuration.

Because this involves no changes to code, and because Phpstan baseline is a common cause of merge difficulties, I will probably merge this in a day or two, more quickly than I customarily do.
2022-03-01 01:53:12 -08:00
..
AbstractFunctional.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
ActiveSheetTest.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
ColumnWidthTest.php BREAKING `Worksheet::getRowDimension()` and `Worksheet::getColumnDimension()` cannot return null anymore 2021-04-25 17:02:36 +09:00
CommentsTest.php Html Reader Comments (#2235) 2021-08-05 08:40:13 -07:00
ConditionalStopIfTrueTest.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
ConditionalTextTest.php Save Excel 2010+ Functions Properly 2020-05-18 12:37:35 +09:00
DrawingImageHyperlinkTest.php Phpstan Differences from Php7 to Php8 (#2631) 2022-03-01 01:53:12 -08:00
EnclosureTest.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
FreezePaneTest.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
MergedCellsTest.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
PrintAreaTest.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
ReadBlankCellsTest.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
ReadFilterFilter.php Replace Tests With Unneeded Mocking (#2465) 2021-12-31 13:24:43 -08:00
ReadFilterTest.php Replace Tests With Unneeded Mocking (#2465) 2021-12-31 13:24:43 -08:00
SelectedCellsTest.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
StreamTest.php Phpstan Differences from Php7 to Php8 (#2631) 2022-03-01 01:53:12 -08:00
TypeAttributePreservationTest.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
WorkbookViewAttributesTest.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00