summaryrefslogtreecommitdiff
path: root/phpstan-baseline.neon
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-03-04 13:53:18 +0000
committerGreg Roach <greg@subaqua.co.uk>2021-03-04 14:02:44 +0000
commit179fae3110cbb2a41e74e6ee6990077a6587169b (patch)
treef0e6dd05319072b86ef6df1f850dad6722275722 /phpstan-baseline.neon
parent31350cc3509f7c628548e4cf6eecb044d66f7a6b (diff)
downloadwebtrees-179fae3110cbb2a41e74e6ee6990077a6587169b.tar.gz
webtrees-179fae3110cbb2a41e74e6ee6990077a6587169b.tar.bz2
webtrees-179fae3110cbb2a41e74e6ee6990077a6587169b.zip
Fix: #3619 - compress HTTP responses
Diffstat (limited to 'phpstan-baseline.neon')
-rw-r--r--phpstan-baseline.neon149
1 files changed, 62 insertions, 87 deletions
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index f93a1c0e79..edc3f7522e 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -101,7 +101,7 @@ parameters:
path: app/Functions/FunctionsImport.php
-
- message: "#^Parameter \\#2 \\$offset of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
+ message: "#^Parameter \\#2 \\$start of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
count: 1
path: app/Functions/FunctionsPrint.php
@@ -111,12 +111,12 @@ parameters:
path: app/Functions/FunctionsPrint.php
-
- message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, array\\<int, string\\>\\|false given\\.$#"
+ message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array\\<int, string\\>\\|false given\\.$#"
count: 1
path: app/Functions/FunctionsPrint.php
-
- message: "#^Parameter \\#1 \\$array of function array_intersect expects array, array\\<int, string\\>\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$arr1 of function array_intersect expects array, array\\<int, string\\>\\|false given\\.$#"
count: 1
path: app/Functions/FunctionsPrint.php
@@ -131,7 +131,7 @@ parameters:
path: app/Functions/FunctionsPrintFacts.php
-
- message: "#^Parameter \\#2 \\$offset of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
+ message: "#^Parameter \\#2 \\$start of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
count: 1
path: app/Functions/FunctionsPrintFacts.php
@@ -180,12 +180,12 @@ parameters:
path: app/Functions/FunctionsRtl.php
-
- message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#"
+ message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
count: 2
path: app/Functions/FunctionsRtl.php
-
- message: "#^Parameter \\#2 \\$offset of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
+ message: "#^Parameter \\#2 \\$start of function substr expects int, int\\<0, max\\>\\|false given\\.$#"
count: 2
path: app/Functions/FunctionsRtl.php
@@ -200,7 +200,7 @@ parameters:
path: app/GedcomRecord.php
-
- message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|null given\\.$#"
+ message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|null given\\.$#"
count: 3
path: app/GedcomRecord.php
@@ -225,7 +225,7 @@ parameters:
path: app/GedcomRecord.php
-
- message: "#^Parameter \\#1 \\$array of function array_shift expects array, array\\<int, string\\>\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$stack of function array_shift expects array, array\\<int, string\\>\\|false given\\.$#"
count: 3
path: app/GedcomRecord.php
@@ -300,7 +300,7 @@ parameters:
path: app/Http/Middleware/UseTransaction.php
-
- message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\(mixed, string\\) given\\.$#"
+ message: "#^Parameter \\#1 \\$function of function call_user_func expects callable\\(\\)\\: mixed, array\\(mixed, string\\) given\\.$#"
count: 1
path: app/Http/Middleware/WrapHandler.php
@@ -355,12 +355,12 @@ parameters:
path: app/Http/RequestHandlers/EditNoteAction.php
-
- message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|null given\\.$#"
+ message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|null given\\.$#"
count: 1
path: app/Http/RequestHandlers/EditRawRecordAction.php
-
- message: "#^Parameter \\#1 \\$stream of function stream_get_meta_data expects resource, resource\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$fp of function stream_get_meta_data expects resource, resource\\|false given\\.$#"
count: 1
path: app/Http/RequestHandlers/ExportGedcomClient.php
@@ -430,7 +430,7 @@ parameters:
path: app/Http/RequestHandlers/ImportGedcomAction.php
-
- message: "#^Parameter \\#1 \\$string of function sha1 expects string, string\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$str of function sha1 expects string, string\\|false given\\.$#"
count: 1
path: app/Http/RequestHandlers/ImportThumbnailsAction.php
@@ -510,12 +510,32 @@ parameters:
path: app/Http/RequestHandlers/MapDataImportAction.php
-
+ message: "#^Offset 0 does not exist on array\\|null\\.$#"
+ count: 2
+ path: app/Http/RequestHandlers/MapDataImportAction.php
+
+ -
+ message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, array\\|null given\\.$#"
+ count: 1
+ path: app/Http/RequestHandlers/MapDataImportAction.php
+
+ -
+ message: "#^Parameter \\#1 \\$input of function array_slice expects array, array\\|null given\\.$#"
+ count: 1
+ path: app/Http/RequestHandlers/MapDataImportAction.php
+
+ -
+ message: "#^Offset int does not exist on array\\|null\\.$#"
+ count: 2
+ path: app/Http/RequestHandlers/MapDataImportAction.php
+
+ -
message: "#^Parameter \\#1 \\$gedcom of method Fisharebest\\\\Webtrees\\\\GedcomRecord\\:\\:updateRecord\\(\\) expects string, string\\|null given\\.$#"
count: 1
path: app/Http/RequestHandlers/MergeFactsAction.php
-
- message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\(Fisharebest\\\\Webtrees\\\\Module\\\\ModuleInterface, string\\) given\\.$#"
+ message: "#^Parameter \\#1 \\$function of function call_user_func expects callable\\(\\)\\: mixed, array\\(Fisharebest\\\\Webtrees\\\\Module\\\\ModuleInterface, string\\) given\\.$#"
count: 1
path: app/Http/RequestHandlers/ModuleAction.php
@@ -540,7 +560,7 @@ parameters:
path: app/Http/RequestHandlers/SearchGeneralPage.php
-
- message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, array\\<int, string\\>\\|false given\\.$#"
+ message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array\\<int, string\\>\\|false given\\.$#"
count: 1
path: app/Http/RequestHandlers/SearchReplaceAction.php
@@ -580,11 +600,6 @@ parameters:
path: app/Http/RequestHandlers/SiteLogsData.php
-
- message: "#^Cannot cast array\\|string\\|false to int\\.$#"
- count: 1
- path: app/Http/RequestHandlers/SitePreferencesPage.php
-
- -
message: "#^Parameter \\#2 \\$resource of method League\\\\Flysystem\\\\FilesystemInterface\\:\\:writeStream\\(\\) expects resource, resource\\|null given\\.$#"
count: 1
path: app/Http/RequestHandlers/UploadMediaAction.php
@@ -615,7 +630,7 @@ parameters:
path: app/Individual.php
-
- message: "#^Parameter \\#1 \\$num1 of function intdiv expects int, float\\|int given\\.$#"
+ message: "#^Parameter \\#1 \\$numerator of function intdiv expects int, float\\|int given\\.$#"
count: 1
path: app/Individual.php
@@ -690,7 +705,7 @@ parameters:
path: app/Module/CensusAssistantModule.php
-
- message: "#^Parameter \\#1 \\$stream of function stream_get_meta_data expects resource, resource\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$fp of function stream_get_meta_data expects resource, resource\\|false given\\.$#"
count: 1
path: app/Module/ClippingsCartModule.php
@@ -710,22 +725,22 @@ parameters:
path: app/Module/FamilyTreeNewsModule.php
-
- message: "#^Parameter \\#1 \\$image of function imagecolorallocate expects GdImage, GdImage\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$im of function imagecolorallocate expects resource, resource\\|false given\\.$#"
count: 1
path: app/Module/FanChartModule.php
-
- message: "#^Parameter \\#1 \\$image of function imagecolortransparent expects GdImage, GdImage\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$im of function imagecolortransparent expects resource, resource\\|false given\\.$#"
count: 1
path: app/Module/FanChartModule.php
-
- message: "#^Parameter \\#2 \\$color of function imagecolortransparent expects int\\|null, int\\|false given\\.$#"
+ message: "#^Parameter \\#2 \\$col of function imagecolortransparent expects int, int\\|false given\\.$#"
count: 1
path: app/Module/FanChartModule.php
-
- message: "#^Parameter \\#1 \\$image of method Fisharebest\\\\Webtrees\\\\Module\\\\FanChartModule\\:\\:imageColor\\(\\) expects resource, GdImage\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$image of method Fisharebest\\\\Webtrees\\\\Module\\\\FanChartModule\\:\\:imageColor\\(\\) expects resource, resource\\|false given\\.$#"
count: 4
path: app/Module/FanChartModule.php
@@ -735,12 +750,12 @@ parameters:
path: app/Module/FanChartModule.php
-
- message: "#^Parameter \\#1 \\$image of function imagefilledrectangle expects GdImage, GdImage\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$im of function imagefilledrectangle expects resource, resource\\|false given\\.$#"
count: 1
path: app/Module/FanChartModule.php
-
- message: "#^Parameter \\#6 \\$color of function imagefilledrectangle expects int, int\\|false given\\.$#"
+ message: "#^Parameter \\#6 \\$col of function imagefilledrectangle expects int, int\\|false given\\.$#"
count: 1
path: app/Module/FanChartModule.php
@@ -750,22 +765,22 @@ parameters:
path: app/Module/FanChartModule.php
-
- message: "#^Parameter \\#1 \\$image of function imagefilledarc expects GdImage, GdImage\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$im of function imagefilledarc expects resource, resource\\|false given\\.$#"
count: 2
path: app/Module/FanChartModule.php
-
- message: "#^Parameter \\#1 \\$image of function imagettftext expects GdImage, GdImage\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$im of function imagettftext expects resource, resource\\|false given\\.$#"
count: 1
path: app/Module/FanChartModule.php
-
- message: "#^Parameter \\#1 \\$image of function imagepng expects GdImage, GdImage\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$im of function imagepng expects resource, resource\\|false given\\.$#"
count: 1
path: app/Module/FanChartModule.php
-
- message: "#^Parameter \\#1 \\$image of function imagedestroy expects GdImage, GdImage\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$im of function imagedestroy expects resource, resource\\|false given\\.$#"
count: 1
path: app/Module/FanChartModule.php
@@ -775,11 +790,6 @@ parameters:
path: app/Module/FanChartModule.php
-
- message: "#^Parameter \\#1 \\$image of function imagecolorallocate expects GdImage, resource given\\.$#"
- count: 1
- path: app/Module/FanChartModule.php
-
- -
message: "#^Method Fisharebest\\\\Webtrees\\\\Module\\\\FixDuplicateLinks\\:\\:updateGedcom\\(\\) should return string but returns string\\|null\\.$#"
count: 1
path: app/Module/FixDuplicateLinks.php
@@ -870,7 +880,7 @@ parameters:
path: app/Module/IndividualListModule.php
-
- message: "#^Parameter \\#1 \\$string of function strip_tags expects string, string\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$str of function strip_tags expects string, string\\|false given\\.$#"
count: 1
path: app/Module/IndividualMetadataModule.php
@@ -1325,17 +1335,7 @@ parameters:
path: app/Report/ReportHtmlTextbox.php
-
- message: "#^Property Fisharebest\\\\Webtrees\\\\Report\\\\ReportParserBase\\:\\:\\$xml_parser \\(resource\\) does not accept XMLParser\\.$#"
- count: 1
- path: app/Report/ReportParserBase.php
-
- -
- message: "#^Parameter \\#3 \\$value of function xml_parser_set_option expects int\\|string, false given\\.$#"
- count: 1
- path: app/Report/ReportParserBase.php
-
- -
- message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\(\\$this\\(Fisharebest\\\\Webtrees\\\\Report\\\\ReportParserBase\\), string\\) given\\.$#"
+ message: "#^Parameter \\#1 \\$function of function call_user_func expects callable\\(\\)\\: mixed, array\\(\\$this\\(Fisharebest\\\\Webtrees\\\\Report\\\\ReportParserBase\\), string\\) given\\.$#"
count: 2
path: app/Report/ReportParserBase.php
@@ -1345,7 +1345,7 @@ parameters:
path: app/Report/ReportParserGenerate.php
-
- message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\(\\$this\\(Fisharebest\\\\Webtrees\\\\Report\\\\ReportParserGenerate\\), string\\) given\\.$#"
+ message: "#^Parameter \\#1 \\$function of function call_user_func expects callable\\(\\)\\: mixed, array\\(\\$this\\(Fisharebest\\\\Webtrees\\\\Report\\\\ReportParserGenerate\\), string\\) given\\.$#"
count: 2
path: app/Report/ReportParserGenerate.php
@@ -1395,37 +1395,22 @@ parameters:
path: app/Report/ReportParserGenerate.php
-
- message: "#^Parameter \\#1 \\$array of function end expects array, array\\<int, string\\>\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$array_arg of function end expects array\\|object, array\\<int, string\\>\\|false given\\.$#"
count: 1
path: app/Report/ReportParserGenerate.php
-
- message: "#^Parameter \\#1 \\$parser of function xml_get_current_line_number expects XMLParser, resource given\\.$#"
- count: 6
- path: app/Report/ReportParserGenerate.php
-
- -
message: "#^Cannot access offset float\\|int on array\\<int, string\\>\\|false\\.$#"
count: 14
path: app/Report/ReportParserGenerate.php
-
- message: "#^Property Fisharebest\\\\Webtrees\\\\Report\\\\ReportParserGenerate\\:\\:\\$parser \\(resource\\) does not accept XMLParser\\.$#"
- count: 4
- path: app/Report/ReportParserGenerate.php
-
- -
- message: "#^Parameter \\#3 \\$value of function xml_parser_set_option expects int\\|string, false given\\.$#"
- count: 4
- path: app/Report/ReportParserGenerate.php
-
- -
message: "#^Cannot call method facts\\(\\) on Fisharebest\\\\Webtrees\\\\GedcomRecord\\|null\\.$#"
count: 2
path: app/Report/ReportParserGenerate.php
-
- message: "#^Parameter \\#1 \\$string of function addslashes expects string, string\\|null given\\.$#"
+ message: "#^Parameter \\#1 \\$str of function addslashes expects string, string\\|null given\\.$#"
count: 1
path: app/Report/ReportParserGenerate.php
@@ -1435,12 +1420,12 @@ parameters:
path: app/Report/ReportParserGenerate.php
-
- message: "#^Parameter \\#1 \\$image of function imagesx expects GdImage, GdImage\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$im of function imagesx expects resource, resource\\|false given\\.$#"
count: 2
path: app/Report/ReportParserGenerate.php
-
- message: "#^Parameter \\#1 \\$image of function imagesy expects GdImage, GdImage\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$im of function imagesy expects resource, resource\\|false given\\.$#"
count: 2
path: app/Report/ReportParserGenerate.php
@@ -1605,12 +1590,12 @@ parameters:
path: app/Services/AdminService.php
-
- message: "#^Parameter \\#1 \\$stream of function fread expects resource, resource\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$fp of function fread expects resource, resource\\|false given\\.$#"
count: 1
path: app/Services/AdminService.php
-
- message: "#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$fp of function fclose expects resource, resource\\|false given\\.$#"
count: 1
path: app/Services/AdminService.php
@@ -1725,7 +1710,7 @@ parameters:
path: app/Services/MediaFileService.php
-
- message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|null given\\.$#"
+ message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|null given\\.$#"
count: 2
path: app/Services/MediaFileService.php
@@ -1765,21 +1750,11 @@ parameters:
path: app/Services/SearchService.php
-
- message: "#^Parameter \\#2 \\$string of function explode expects string, string\\|false given\\.$#"
+ message: "#^Parameter \\#2 \\$str of function explode expects string, string\\|false given\\.$#"
count: 2
path: app/Services/ServerCheckService.php
-
- message: "#^Comparison operation \"\\<\\=\" between 1 and 0 is always false\\.$#"
- count: 1
- path: app/Services/ServerCheckService.php
-
- -
- message: "#^Result of && is always false\\.$#"
- count: 1
- path: app/Services/ServerCheckService.php
-
- -
message: "#^Parameter \\#1 \\$value of function e expects Illuminate\\\\Contracts\\\\Support\\\\Htmlable\\|string, string\\|false given\\.$#"
count: 1
path: app/Services/ServerCheckService.php
@@ -1790,7 +1765,7 @@ parameters:
path: app/Services/SiteLogsService.php
-
- message: "#^Parameter \\#1 \\$stream of function fwrite expects resource, resource\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$fp of function fwrite expects resource, resource\\|false given\\.$#"
count: 1
path: app/Services/UpgradeService.php
@@ -1800,12 +1775,12 @@ parameters:
path: app/Services/UpgradeService.php
-
- message: "#^Parameter \\#1 \\$stream of function ftell expects resource, resource\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$fp of function ftell expects resource, resource\\|false given\\.$#"
count: 1
path: app/Services/UpgradeService.php
-
- message: "#^Parameter \\#1 \\$stream of function rewind expects resource, resource\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$fp of function rewind expects resource, resource\\|false given\\.$#"
count: 1
path: app/Services/UpgradeService.php
@@ -1815,7 +1790,7 @@ parameters:
path: app/Services/UpgradeService.php
-
- message: "#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#"
+ message: "#^Parameter \\#1 \\$fp of function fclose expects resource, resource\\|false given\\.$#"
count: 1
path: app/Services/UpgradeService.php
@@ -1845,7 +1820,7 @@ parameters:
path: app/Statistics.php
-
- message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\(\\$this\\(Fisharebest\\\\Webtrees\\\\Statistics\\), string\\) given\\.$#"
+ message: "#^Parameter \\#1 \\$function of function call_user_func expects callable\\(\\)\\: mixed, array\\(\\$this\\(Fisharebest\\\\Webtrees\\\\Statistics\\), string\\) given\\.$#"
count: 2
path: app/Statistics.php