diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2021-11-20 22:15:57 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2021-11-21 00:01:09 +0000 |
| commit | d8809d62a7e3fb7260ce3624ee766b7cb2dd1a21 (patch) | |
| tree | 253ecfc94bfc4fef7536179734633ed7bbbdb444 /phpstan-baseline.neon | |
| parent | 4c3814d030eb189363dd82eebd06e890399c6cf5 (diff) | |
| download | webtrees-d8809d62a7e3fb7260ce3624ee766b7cb2dd1a21.tar.gz webtrees-d8809d62a7e3fb7260ce3624ee766b7cb2dd1a21.tar.bz2 webtrees-d8809d62a7e3fb7260ce3624ee766b7cb2dd1a21.zip | |
CodeStyle
Diffstat (limited to 'phpstan-baseline.neon')
| -rw-r--r-- | phpstan-baseline.neon | 111 |
1 files changed, 3 insertions, 108 deletions
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 12afb8377e..3894bb3f37 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -6,11 +6,6 @@ parameters: path: app/Auth.php - - message: "#^Method Fisharebest\\\\Webtrees\\\\Auth\\:\\:id\\(\\) should return int\\|null but returns mixed\\.$#" - count: 1 - path: app/Auth.php - - - message: "#^Method Fisharebest\\\\Webtrees\\\\Census\\\\AbstractCensusColumn\\:\\:spouseFamily\\(\\) should return Fisharebest\\\\Webtrees\\\\Family\\|null but returns mixed\\.$#" count: 1 path: app/Census/AbstractCensusColumn.php @@ -51,11 +46,6 @@ parameters: path: app/Date.php - - message: "#^Method Fisharebest\\\\Webtrees\\\\Date\\\\AbstractCalendarDate\\:\\:formatGedcomMonth\\(\\) should return string but returns int\\|string\\|false\\.$#" - count: 1 - path: app/Date/AbstractCalendarDate.php - - - message: "#^Method Fisharebest\\\\Webtrees\\\\Elements\\\\AbstractElement\\:\\:canonicalText\\(\\) should return string but returns string\\|null\\.$#" count: 1 path: app/Elements/AbstractElement.php @@ -401,16 +391,6 @@ parameters: path: app/Family.php - - message: "#^Cannot access an offset on mixed\\.$#" - count: 1 - path: app/FlashMessages.php - - - - message: "#^Method Fisharebest\\\\Webtrees\\\\FlashMessages\\:\\:getMessages\\(\\) should return array\\<object\\> but returns mixed\\.$#" - count: 1 - path: app/FlashMessages.php - - - message: "#^Method Fisharebest\\\\Webtrees\\\\Functions\\\\FunctionsImport\\:\\:createMediaObject\\(\\) should return string but returns mixed\\.$#" count: 1 path: app/Functions/FunctionsImport.php @@ -536,11 +516,6 @@ parameters: path: app/GedcomRecord.php - - message: "#^Method Fisharebest\\\\Webtrees\\\\GuestUser\\:\\:getPreference\\(\\) should return string but returns mixed\\.$#" - count: 1 - path: app/GuestUser.php - - - message: "#^Cannot call method getAttribute\\(\\) on mixed\\.$#" count: 3 path: app/Helpers/functions.php @@ -786,11 +761,6 @@ parameters: path: app/Http/RequestHandlers/AddSpouseToIndividualAction.php - - message: "#^Offset 'F'\\|'M'\\|'U' on array\\{F\\: string, M\\: string, U\\: string\\} on left side of \\?\\? always exists and is not nullable\\.$#" - count: 1 - path: app/Http/RequestHandlers/AddSpouseToIndividualPage.php - - - message: "#^Parameter \\#1 \\$base_url of method Fisharebest\\\\Webtrees\\\\Validator\\:\\:isLocalUrl\\(\\) expects string, mixed given\\.$#" count: 1 path: app/Http/RequestHandlers/AddUnlinkedAction.php @@ -971,11 +941,6 @@ parameters: path: app/Http/RequestHandlers/EditRawFactAction.php - - message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|null given\\.$#" - count: 1 - path: app/Http/RequestHandlers/EditRawRecordAction.php - - - message: "#^Parameter \\#1 \\$base_url of method Fisharebest\\\\Webtrees\\\\Validator\\:\\:isLocalUrl\\(\\) expects string, mixed given\\.$#" count: 1 path: app/Http/RequestHandlers/EmptyClipboard.php @@ -1476,11 +1441,6 @@ parameters: path: app/Http/RequestHandlers/SiteLogsData.php - - message: "#^Cannot cast mixed to int\\.$#" - count: 1 - path: app/Http/RequestHandlers/SitePreferencesPage.php - - - message: "#^Cannot call method createStreamFromResource\\(\\) on mixed\\.$#" count: 1 path: app/Http/RequestHandlers/SynchronizeTrees.php @@ -1691,12 +1651,7 @@ parameters: path: app/Module/AncestorsChartModule.php - - message: "#^Method Fisharebest\\\\Webtrees\\\\Module\\\\AncestorsChartModule\\:\\:chartUrl\\(\\) has parameter \\$parameters with no value type specified in iterable type array\\.$#" - count: 1 - path: app/Module/AncestorsChartModule.php - - - - message: "#^Parameter \\#2 \\$parameters of method Fisharebest\\\\Webtrees\\\\Module\\\\AncestorsChartModule\\:\\:chartUrl\\(\\) expects array\\<array\\|bool\\|int\\|string\\|null\\>, array\\<string, mixed\\> given\\.$#" + message: "#^Parameter \\#2 \\$parameters of method Fisharebest\\\\Webtrees\\\\Module\\\\AncestorsChartModule\\:\\:chartUrl\\(\\) expects array\\<array\\<string\\>\\|bool\\|int\\|string\\|null\\>, array\\<string, mixed\\> given\\.$#" count: 1 path: app/Module/AncestorsChartModule.php @@ -1766,31 +1721,11 @@ parameters: path: app/Module/ChartsMenuModule.php - - message: "#^Cannot access offset mixed on mixed\\.$#" - count: 1 - path: app/Module/ClippingsCartModule.php - - - - message: "#^Cannot access offset string on mixed\\.$#" - count: 30 - path: app/Module/ClippingsCartModule.php - - - message: "#^Parameter \\#1 \\$fp of function stream_get_meta_data expects resource, resource\\|false given\\.$#" count: 1 path: app/Module/ClippingsCartModule.php - - message: "#^Parameter \\#1 \\$input of function array_keys expects array, mixed given\\.$#" - count: 2 - path: app/Module/ClippingsCartModule.php - - - - message: "#^Parameter \\#1 \\$var of function count expects array\\|Countable, mixed given\\.$#" - count: 1 - path: app/Module/ClippingsCartModule.php - - - message: "#^Parameter \\#2 \\$user of static method Fisharebest\\\\Webtrees\\\\Auth\\:\\:isManager\\(\\) expects Fisharebest\\\\Webtrees\\\\Contracts\\\\UserInterface\\|null, mixed given\\.$#" count: 1 path: app/Module/ClippingsCartModule.php @@ -1861,11 +1796,6 @@ parameters: path: app/Module/CloudsTheme.php - - message: "#^Method Fisharebest\\\\Webtrees\\\\Module\\\\ColorsTheme\\:\\:palette\\(\\) should return string but returns mixed\\.$#" - count: 1 - path: app/Module/ColorsTheme.php - - - message: "#^Method Fisharebest\\\\Webtrees\\\\Module\\\\CompactTreeChartModule\\:\\:chartUrl\\(\\) has parameter \\$parameters with no value type specified in iterable type array\\.$#" count: 1 path: app/Module/CompactTreeChartModule.php @@ -3531,7 +3461,7 @@ parameters: - message: "#^Cannot access offset string on mixed\\.$#" - count: 10 + count: 4 path: app/Services/ClipboardService.php - @@ -3545,11 +3475,6 @@ parameters: path: app/Services/ClipboardService.php - - message: "#^Parameter \\#1 \\$input of function array_slice expects array, mixed given\\.$#" - count: 1 - path: app/Services/ClipboardService.php - - - message: "#^Parameter \\#1 \\$command of class Symfony\\\\Component\\\\Mailer\\\\Transport\\\\SendmailTransport constructor expects string\\|null, mixed given\\.$#" count: 1 path: app/Services/EmailService.php @@ -3580,21 +3505,6 @@ parameters: path: app/Services/HomePageService.php - - message: "#^Parameter \\#1 \\$size of method Fisharebest\\\\Webtrees\\\\Services\\\\MediaFileService\\:\\:parseIniFileSize\\(\\) expects string, string\\|false given\\.$#" - count: 2 - path: app/Services/MediaFileService.php - - - - message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|null given\\.$#" - count: 2 - path: app/Services/MediaFileService.php - - - - message: "#^Unsafe access to private constant Fisharebest\\\\Webtrees\\\\Services\\\\MediaFileService\\:\\:IGNORE_FOLDERS through static\\:\\:\\.$#" - count: 1 - path: app/Services/MediaFileService.php - - - message: "#^Anonymous function should return Fisharebest\\\\Webtrees\\\\Module\\\\ModuleInterface but returns mixed\\.$#" count: 1 path: app/Services/ModuleService.php @@ -3665,21 +3575,11 @@ parameters: path: app/Services/RelationshipService.php - - message: "#^Binary operation \"\\*\" between 365 and string results in an error\\.$#" - count: 1 - path: app/Services/SearchService.php - - - message: "#^Parameter \\#1 \\$haystack of function mb_stripos expects string, string\\|null given\\.$#" count: 1 path: app/Services/SearchService.php - - message: "#^Parameter \\#1 \\$haystack of function str_starts_with expects string, int\\|string given\\.$#" - count: 2 - path: app/Services/SearchService.php - - - message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, string\\|null given\\.$#" count: 1 path: app/Services/SearchService.php @@ -3691,7 +3591,7 @@ parameters: - message: "#^Parameter \\#2 \\$str of function explode expects string, string\\|false given\\.$#" - count: 2 + count: 1 path: app/Services/ServerCheckService.php - @@ -3755,11 +3655,6 @@ parameters: path: app/Services/UserService.php - - message: "#^Method Fisharebest\\\\Webtrees\\\\Session\\:\\:getCsrfToken\\(\\) should return string but returns mixed\\.$#" - count: 1 - path: app/Session.php - - - message: "#^Parameter \\#1 \\$url of function parse_url expects string, mixed given\\.$#" count: 3 path: app/Session.php |
