PhpSpreadsheet/tests/PhpSpreadsheetTests/Writer/Html
oleibman 68158c8120
Phpstan Differences from Php7 to Php8, Again (#2665)
These changes have already been implemented twice, and been regressed twice. I'll try once more (with a different approach), then give up ...

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 mostly adds annotations or updates doc-blocks. Only 2 members have changes to executable code, and these are very minor - BitWise and Writer/Xlsx. For test members, all baseline errors are deleted and the code is fixed. Php7 and Php8 both report no errors with this configuration.
2022-03-11 23:28:30 -08:00
..
AllOrOneSheetTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
CallbackTest.php Phpstan Differences from Php7 to Php8, Again (#2665) 2022-03-11 23:28:30 -08:00
ExtendForChartsAndImagesTest.php Don't ouput row and columns without any cells in HTML writer 2020-06-28 22:03:37 +09:00
GridlinesTest.php Phpstan Differences from Php7 to Php8, Again (#2665) 2022-03-11 23:28:30 -08:00
HtmlCommentsTest.php Phpstan Differences from Php7 to Php8, Again (#2665) 2022-03-11 23:28:30 -08:00
HtmlNumberFormatTest.php Changes to the default arguments for `htmlspecialchars()` and `html_entity_decode()` requires setting of the argument value explicitly to prevent changes in behaviour. (#2176) 2021-06-21 12:56:03 +02:00
ImagesRootTest.php 2 Tests vs. Scrutinizer/Phpstan 2021-07-01 11:15:02 +02:00
InvalidFileNameTest.php Testing - Delete Temp Files When No Longer Needed (#1488) 2020-05-24 20:03:07 +09:00
RepeatedRowsTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
VisibilityTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
XssVulnerabilityTest.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00