diff options
Diffstat (limited to 'phpstan-baseline.neon')
| -rw-r--r-- | phpstan-baseline.neon | 145 |
1 files changed, 70 insertions, 75 deletions
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index bdbf55bb72..76471faa36 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -41,7 +41,7 @@ parameters: path: app/Fact.php - - message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|null given\\.$#" + message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|null given\\.$#" count: 1 path: app/Factories/SlugFactory.php @@ -66,17 +66,7 @@ parameters: path: app/Functions/FunctionsImport.php - - message: "#^Cannot access offset 'OBJE' on array\\<mixed, string\\>\\|false\\.$#" - count: 2 - path: app/Functions/FunctionsPrint.php - - - - message: "#^Parameter \\#1 \\$arr1 of function array_intersect expects array, array\\<int, string\\>\\|false given\\.$#" - count: 1 - path: app/Functions/FunctionsPrint.php - - - - message: "#^Parameter \\#1 \\$array_arg of function uasort expects array, array\\<mixed, string\\>\\|false given\\.$#" + message: "#^Parameter \\#1 \\$array of function array_intersect expects array, array\\<int, string\\>\\|false given\\.$#" count: 1 path: app/Functions/FunctionsPrint.php @@ -86,12 +76,12 @@ parameters: path: app/Functions/FunctionsPrint.php - - message: "#^Parameter \\#2 \\$start of function substr expects int, int\\<0, max\\>\\|false given\\.$#" + message: "#^Parameter \\#2 \\$offset of function substr expects int, int\\<0, max\\>\\|false given\\.$#" count: 1 path: app/Functions/FunctionsPrint.php - - message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array\\<int, string\\>\\|false given\\.$#" + message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, array\\<int, string\\>\\|false given\\.$#" count: 1 path: app/Functions/FunctionsPrint.php @@ -106,7 +96,7 @@ parameters: path: app/Functions/FunctionsPrintFacts.php - - message: "#^Parameter \\#2 \\$start of function substr expects int, int\\<0, max\\>\\|false given\\.$#" + message: "#^Parameter \\#2 \\$offset of function substr expects int, int\\<0, max\\>\\|false given\\.$#" count: 1 path: app/Functions/FunctionsPrintFacts.php @@ -140,12 +130,12 @@ parameters: path: app/Functions/FunctionsRtl.php - - message: "#^Parameter \\#2 \\$start of function substr expects int, int\\<0, max\\>\\|false given\\.$#" + message: "#^Parameter \\#2 \\$offset of function substr expects int, int\\<0, max\\>\\|false given\\.$#" count: 1 path: app/Functions/FunctionsRtl.php - - message: "#^Parameter \\#3 \\$length of function substr expects int, int\\<0, max\\>\\|false given\\.$#" + message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\<0, max\\>\\|false given\\.$#" count: 1 path: app/Functions/FunctionsRtl.php @@ -170,12 +160,12 @@ parameters: path: app/GedcomRecord.php - - message: "#^Parameter \\#1 \\$stack of function array_shift expects array, array\\<int, string\\>\\|false given\\.$#" + message: "#^Parameter \\#1 \\$array of function array_shift expects array, array\\<int, string\\>\\|false given\\.$#" count: 2 path: app/GedcomRecord.php - - message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|null given\\.$#" + message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|null given\\.$#" count: 2 path: app/GedcomRecord.php @@ -185,11 +175,6 @@ parameters: path: app/GedcomRecord.php - - message: "#^Parameter \\#2 \\$haystack of function array_search expects array, array\\<int, string\\>\\|false given\\.$#" - count: 2 - path: app/GedcomRecord.php - - - message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, string\\|null given\\.$#" count: 1 path: app/GedcomRecord.php @@ -310,7 +295,7 @@ parameters: path: app/Http/RequestHandlers/EditNoteAction.php - - message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|null given\\.$#" + message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|null given\\.$#" count: 1 path: app/Http/RequestHandlers/EditRawRecordAction.php @@ -320,7 +305,7 @@ parameters: path: app/Http/RequestHandlers/EmailPreferencesPage.php - - message: "#^Parameter \\#1 \\$fp of function stream_get_meta_data expects resource, resource\\|false given\\.$#" + message: "#^Parameter \\#1 \\$stream of function stream_get_meta_data expects resource, resource\\|false given\\.$#" count: 1 path: app/Http/RequestHandlers/ExportGedcomClient.php @@ -450,42 +435,22 @@ parameters: path: app/Http/RequestHandlers/ManageMediaData.php - - message: "#^Offset 0 does not exist on array\\|null\\.$#" - count: 2 - 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 \\$haystack of function str_contains expects string, string\\|false 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: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|false given\\.$#" count: 1 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 \\$gedcom of method Fisharebest\\\\Webtrees\\\\GedcomRecord\\:\\:updateRecord\\(\\) expects string, string\\|null given\\.$#" count: 1 path: app/Http/RequestHandlers/MergeFactsAction.php - - message: "#^Parameter \\#1 \\$function of function call_user_func expects callable\\(\\)\\: mixed, array\\(Fisharebest\\\\Webtrees\\\\Module\\\\ModuleInterface, non\\-empty\\-string\\) given\\.$#" + message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\(Fisharebest\\\\Webtrees\\\\Module\\\\ModuleInterface, non\\-empty\\-string\\) given\\.$#" count: 1 path: app/Http/RequestHandlers/ModuleAction.php @@ -525,7 +490,7 @@ parameters: path: app/Http/RequestHandlers/SearchReplaceAction.php - - message: "#^Parameter \\#2 \\.\\.\\.\\$args of function array_merge expects array, array\\<int, string\\>\\|false given\\.$#" + message: "#^Parameter \\#2 \\.\\.\\.\\$arrays of function array_merge expects array, array\\<int, string\\>\\|false given\\.$#" count: 1 path: app/Http/RequestHandlers/SearchReplaceAction.php @@ -605,7 +570,7 @@ parameters: path: app/Individual.php - - message: "#^Parameter \\#1 \\$numerator of function intdiv expects int, float\\|int given\\.$#" + message: "#^Parameter \\#1 \\$num1 of function intdiv expects int, float\\|int given\\.$#" count: 1 path: app/Individual.php @@ -650,7 +615,7 @@ parameters: path: app/Module/CensusAssistantModule.php - - message: "#^Parameter \\#1 \\$fp of function stream_get_meta_data expects resource, resource\\|false given\\.$#" + message: "#^Parameter \\#1 \\$stream of function stream_get_meta_data expects resource, resource\\|false given\\.$#" count: 1 path: app/Module/ClippingsCartModule.php @@ -725,47 +690,52 @@ parameters: path: app/Module/FanChartModule.php - - message: "#^Parameter \\#1 \\$im of function imagecolorallocate expects resource, resource\\|false given\\.$#" + message: "#^Parameter \\#1 \\$image of function imagecolorallocate expects GdImage, GdImage\\|false given\\.$#" count: 1 path: app/Module/FanChartModule.php - - message: "#^Parameter \\#1 \\$im of function imagecolortransparent expects resource, resource\\|false given\\.$#" + message: "#^Parameter \\#1 \\$image of function imagecolorallocate expects GdImage, resource given\\.$#" count: 1 path: app/Module/FanChartModule.php - - message: "#^Parameter \\#1 \\$im of function imagedestroy expects resource, resource\\|false given\\.$#" + message: "#^Parameter \\#1 \\$image of function imagecolortransparent expects GdImage, GdImage\\|false given\\.$#" count: 1 path: app/Module/FanChartModule.php - - message: "#^Parameter \\#1 \\$im of function imagefilledarc expects resource, resource\\|false given\\.$#" + message: "#^Parameter \\#1 \\$image of function imagedestroy expects GdImage, GdImage\\|false given\\.$#" + count: 1 + path: app/Module/FanChartModule.php + + - + message: "#^Parameter \\#1 \\$image of function imagefilledarc expects GdImage, GdImage\\|false given\\.$#" count: 2 path: app/Module/FanChartModule.php - - message: "#^Parameter \\#1 \\$im of function imagefilledrectangle expects resource, resource\\|false given\\.$#" + message: "#^Parameter \\#1 \\$image of function imagefilledrectangle expects GdImage, GdImage\\|false given\\.$#" count: 1 path: app/Module/FanChartModule.php - - message: "#^Parameter \\#1 \\$im of function imagepng expects resource, resource\\|false given\\.$#" + message: "#^Parameter \\#1 \\$image of function imagepng expects GdImage, GdImage\\|false given\\.$#" count: 1 path: app/Module/FanChartModule.php - - message: "#^Parameter \\#1 \\$im of function imagettftext expects resource, resource\\|false given\\.$#" + message: "#^Parameter \\#1 \\$image of function imagettftext expects GdImage, GdImage\\|false given\\.$#" count: 1 path: app/Module/FanChartModule.php - - message: "#^Parameter \\#1 \\$image of method Fisharebest\\\\Webtrees\\\\Module\\\\FanChartModule\\:\\:imageColor\\(\\) expects resource, resource\\|false given\\.$#" + message: "#^Parameter \\#1 \\$image of method Fisharebest\\\\Webtrees\\\\Module\\\\FanChartModule\\:\\:imageColor\\(\\) expects resource, GdImage\\|false given\\.$#" count: 4 path: app/Module/FanChartModule.php - - message: "#^Parameter \\#2 \\$col of function imagecolortransparent expects int, int\\|false given\\.$#" + message: "#^Parameter \\#2 \\$color of function imagecolortransparent expects int\\|null, int\\|false given\\.$#" count: 1 path: app/Module/FanChartModule.php @@ -775,7 +745,7 @@ parameters: path: app/Module/FanChartModule.php - - message: "#^Parameter \\#6 \\$col of function imagefilledrectangle expects int, int\\|false given\\.$#" + message: "#^Parameter \\#6 \\$color of function imagefilledrectangle expects int, int\\|false given\\.$#" count: 1 path: app/Module/FanChartModule.php @@ -885,7 +855,7 @@ parameters: path: app/Module/IndividualListModule.php - - message: "#^Parameter \\#1 \\$str of function strip_tags expects string, string\\|false given\\.$#" + message: "#^Parameter \\#1 \\$string of function strip_tags expects string, string\\|false given\\.$#" count: 1 path: app/Module/IndividualMetadataModule.php @@ -1225,11 +1195,21 @@ parameters: path: app/Report/ReportHtmlTextbox.php - - message: "#^Parameter \\#1 \\$function of function call_user_func expects callable\\(\\)\\: mixed, array\\(\\$this\\(Fisharebest\\\\Webtrees\\\\Report\\\\ReportParserBase\\), non\\-empty\\-string\\) given\\.$#" + message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\(\\$this\\(Fisharebest\\\\Webtrees\\\\Report\\\\ReportParserBase\\), non\\-empty\\-string\\) given\\.$#" count: 2 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: "#^Property Fisharebest\\\\Webtrees\\\\Report\\\\ReportParserBase\\:\\:\\$xml_parser \\(resource\\) does not accept XMLParser\\.$#" + count: 1 + path: app/Report/ReportParserBase.php + + - message: "#^Array \\(array\\<string\\>\\) does not accept array\\<int, string\\>\\.$#" count: 1 path: app/Report/ReportParserGenerate.php @@ -1305,22 +1285,22 @@ parameters: path: app/Report/ReportParserGenerate.php - - message: "#^Parameter \\#1 \\$array_arg of function end expects array\\|object, array\\<int, string\\>\\|false given\\.$#" + message: "#^Parameter \\#1 \\$array of function end expects array\\|object, array\\<int, string\\>\\|false given\\.$#" count: 1 path: app/Report/ReportParserGenerate.php - - message: "#^Parameter \\#1 \\$function of function call_user_func expects callable\\(\\)\\: mixed, array\\(\\$this\\(Fisharebest\\\\Webtrees\\\\Report\\\\ReportParserGenerate\\), non\\-empty\\-string\\) given\\.$#" + message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\(\\$this\\(Fisharebest\\\\Webtrees\\\\Report\\\\ReportParserGenerate\\), non\\-empty\\-string\\) given\\.$#" count: 2 path: app/Report/ReportParserGenerate.php - - message: "#^Parameter \\#1 \\$im of function imagesx expects resource, resource\\|false given\\.$#" + message: "#^Parameter \\#1 \\$image of function imagesx expects GdImage, GdImage\\|false given\\.$#" count: 2 path: app/Report/ReportParserGenerate.php - - message: "#^Parameter \\#1 \\$im of function imagesy expects resource, resource\\|false given\\.$#" + message: "#^Parameter \\#1 \\$image of function imagesy expects GdImage, GdImage\\|false given\\.$#" count: 2 path: app/Report/ReportParserGenerate.php @@ -1335,7 +1315,12 @@ parameters: path: app/Report/ReportParserGenerate.php - - message: "#^Parameter \\#1 \\$str of function addslashes expects string, string\\|null given\\.$#" + message: "#^Parameter \\#1 \\$parser of function xml_get_current_line_number expects XMLParser, resource given\\.$#" + count: 6 + path: app/Report/ReportParserGenerate.php + + - + message: "#^Parameter \\#1 \\$string of function addslashes expects string, string\\|null given\\.$#" count: 1 path: app/Report/ReportParserGenerate.php @@ -1350,6 +1335,11 @@ parameters: 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: "#^Property Fisharebest\\\\Webtrees\\\\Report\\\\ReportParserGenerate\\:\\:\\$current_element \\(Fisharebest\\\\Webtrees\\\\Report\\\\ReportBaseElement\\) does not accept Fisharebest\\\\Webtrees\\\\Report\\\\AbstractRenderer\\.$#" count: 1 path: app/Report/ReportParserGenerate.php @@ -1360,6 +1350,11 @@ parameters: 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: "#^Property Fisharebest\\\\Webtrees\\\\Report\\\\ReportParserGenerate\\:\\:\\$print_data \\(bool\\) does not accept bool\\|null\\.$#" count: 4 path: app/Report/ReportParserGenerate.php @@ -1505,7 +1500,7 @@ parameters: path: app/Services/GedcomEditService.php - - message: "#^Parameter \\#1 \\$stack of function array_shift expects array, array\\<int, string\\>\\|false given\\.$#" + message: "#^Parameter \\#1 \\$array of function array_shift expects array, array\\<int, string\\>\\|false given\\.$#" count: 1 path: app/Services/GedcomEditService.php @@ -1555,7 +1550,7 @@ parameters: path: app/Services/MediaFileService.php - - message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|null given\\.$#" + message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|null given\\.$#" count: 2 path: app/Services/MediaFileService.php @@ -1645,7 +1640,7 @@ parameters: path: app/Services/ServerCheckService.php - - message: "#^Parameter \\#2 \\$str of function explode expects string, string\\|false given\\.$#" + message: "#^Parameter \\#2 \\$string of function explode expects string, string\\|false given\\.$#" count: 2 path: app/Services/ServerCheckService.php @@ -1665,22 +1660,22 @@ parameters: path: app/Services/UpgradeService.php - - message: "#^Parameter \\#1 \\$fp of function fclose expects resource, resource\\|false given\\.$#" + message: "#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#" count: 1 path: app/Services/UpgradeService.php - - message: "#^Parameter \\#1 \\$fp of function ftell expects resource, resource\\|false given\\.$#" + message: "#^Parameter \\#1 \\$stream of function ftell expects resource, resource\\|false given\\.$#" count: 1 path: app/Services/UpgradeService.php - - message: "#^Parameter \\#1 \\$fp of function fwrite expects resource, resource\\|false given\\.$#" + message: "#^Parameter \\#1 \\$stream of function fwrite expects resource, resource\\|false given\\.$#" count: 1 path: app/Services/UpgradeService.php - - message: "#^Parameter \\#1 \\$fp of function rewind expects resource, resource\\|false given\\.$#" + message: "#^Parameter \\#1 \\$stream of function rewind expects resource, resource\\|false given\\.$#" count: 1 path: app/Services/UpgradeService.php @@ -1720,7 +1715,7 @@ parameters: path: app/Statistics.php - - message: "#^Parameter \\#1 \\$function of function call_user_func expects callable\\(\\)\\: mixed, array\\(\\$this\\(Fisharebest\\\\Webtrees\\\\Statistics\\), string\\) given\\.$#" + message: "#^Parameter \\#1 \\$callback of function call_user_func expects callable\\(\\)\\: mixed, array\\(\\$this\\(Fisharebest\\\\Webtrees\\\\Statistics\\), string\\) given\\.$#" count: 2 path: app/Statistics.php |
