PhpSpreadsheet/tests/PhpSpreadsheetTests/Worksheet
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
..
AutoFilter Null Passed to AutoFilter SetRange (#2454) 2021-12-25 08:45:10 -08:00
ColumnCellIterator2Test.php Let's see what Scrutinizer makes of these changes (#1859) 2021-02-18 12:39:24 +01:00
ColumnCellIteratorTest.php Eliminate Mocking from Row/Column/Cell Iterator Tests (#2352) 2021-11-01 13:50:42 +09:00
ColumnDimensionTest.php Html import dimension conversions (#2152) 2021-06-11 17:29:49 +02:00
ColumnIteratorTest.php Eliminate Mocking from Row/Column/Cell Iterator Tests (#2352) 2021-11-01 13:50:42 +09:00
ColumnTest.php Eliminate Mocking from Row/Column/Cell Iterator Tests (#2352) 2021-11-01 13:50:42 +09:00
ConditionalStyleTest.php Allow single-cell checks on conditional styles, even when the style is configured for a range of cells (#2483) 2022-01-05 13:39:50 +01:00
DefaultPaperSizeTest.php Improve PDF Support for Page Size and Orientation (#2410) 2021-12-01 23:00:02 -08:00
DrawingTest.php Phpstan Differences from Php7 to Php8 (#2631) 2022-03-01 01:53:12 -08:00
IteratorTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
PageMarginsTest.php Stricter visibility 2020-07-19 12:30:31 +09:00
ProtectionTest.php Password and hash are exclusive 2020-05-31 22:36:37 +09:00
RemoveTest.php Recalibrate Row/Column Dimensions After removeRow/Col (#2486) 2022-01-13 19:06:22 -08:00
RowCellIterator2Test.php Let's see what Scrutinizer makes of these changes (#1859) 2021-02-18 12:39:24 +01:00
RowCellIteratorTest.php Eliminate Mocking from Row/Column/Cell Iterator Tests (#2352) 2021-11-01 13:50:42 +09:00
RowDimensionTest.php Html import dimension conversions (#2152) 2021-06-11 17:29:49 +02:00
RowIteratorTest.php Eliminate Mocking from Row/Column/Cell Iterator Tests (#2352) 2021-11-01 13:50:42 +09:00
RowTest.php Eliminate Mocking from Row/Column/Cell Iterator Tests (#2352) 2021-11-01 13:50:42 +09:00
WorksheetNamedRangesTest.php Now That SettingsTest Is Well-Behaved 2021-06-30 13:15:20 -07:00
WorksheetTest.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00