PhpSpreadsheet/tests/PhpSpreadsheetTests/Shared
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
..
Trend Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
CodePageTest.php Xls Reader Handle MACCENTRALEUROPE With or Without Hyphen (#2213) 2021-07-12 03:02:47 +02:00
DateTest.php Refactor ISO data type validation from cell to shared date; add extra checks for invalid dates; and appropriate unit tests 2022-02-26 14:13:12 +01:00
DrawingTest.php Html import dimension conversions (#2152) 2021-06-11 17:29:49 +02:00
FileTest.php Tweaks to Input File Validation (#2217) 2021-07-24 20:44:04 -07:00
FontTest.php Reduce PHPStan error in tests 2021-04-12 11:10:23 +09:00
OLEReadTest.php Update PHP-CS-Fixer rules 2020-05-18 13:49:57 +09:00
PasswordHasherTest.php Fix Worksheet Passwords 2021-06-29 09:11:51 -07:00
PasswordReloadTest.php Fix SettingsTest 2021-06-30 11:33:35 -07:00
StringHelperTest.php Phpstan Differences from Php7 to Php8, Again (#2665) 2022-03-11 23:28:30 -08:00
TimeZoneTest.php Document Properties - Coverage and 32-bit-safe Timestamps (#2113) 2021-05-30 13:55:58 +02:00