diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2024-10-23 14:53:48 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2024-10-23 16:44:30 +0100 |
| commit | d7c2f5cc56f17801156c069987440ca1da2c5057 (patch) | |
| tree | 8a92a7c86f42b52b1e56b892cae91cc6a8683c02 /phpstan-baseline.neon | |
| parent | b35321808799d5f82fb98c0bd5439a8db7aee589 (diff) | |
| download | webtrees-d7c2f5cc56f17801156c069987440ca1da2c5057.tar.gz webtrees-d7c2f5cc56f17801156c069987440ca1da2c5057.tar.bz2 webtrees-d7c2f5cc56f17801156c069987440ca1da2c5057.zip | |
Use object instead of stdClass
Diffstat (limited to 'phpstan-baseline.neon')
| -rw-r--r-- | phpstan-baseline.neon | 119 |
1 files changed, 92 insertions, 27 deletions
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 740e240182..ca08acefd0 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -41,11 +41,6 @@ parameters: path: app/Cli/Commands/TreeExport.php - - message: "#^Unknown parameter \\$suggestedValues in call to method Symfony\\\\Component\\\\Console\\\\Command\\\\Command\\:\\:addArgument\\(\\)\\.$#" - count: 1 - path: app/Cli/Commands/TreeExport.php - - - message: "#^Parameter \\$email of method Fisharebest\\\\Webtrees\\\\Services\\\\UserService\\:\\:create\\(\\) expects string, mixed given\\.$#" count: 1 path: app/Cli/Commands/UserCreate.php @@ -576,6 +571,11 @@ parameters: path: app/Http/RequestHandlers/AutoCompleteCitation.php - + message: "#^Parameter \\#1 \\$items of method Illuminate\\\\Support\\\\Collection\\<\\(int\\|string\\),Fisharebest\\\\Webtrees\\\\Individual\\>\\:\\:merge\\(\\) expects Illuminate\\\\Contracts\\\\Support\\\\Arrayable\\<\\(int\\|string\\), Fisharebest\\\\Webtrees\\\\Individual\\>\\|iterable\\<\\(int\\|string\\), Fisharebest\\\\Webtrees\\\\Individual\\>, Illuminate\\\\Support\\\\Collection\\<\\(int\\|string\\), Fisharebest\\\\Webtrees\\\\Family\\> given\\.$#" + count: 1 + path: app/Http/RequestHandlers/AutoCompleteCitation.php + + - message: "#^Cannot call method fullName\\(\\) on Fisharebest\\\\Webtrees\\\\GedcomRecord\\|null\\.$#" count: 1 path: app/Http/RequestHandlers/CalendarEvents.php @@ -2166,6 +2166,11 @@ parameters: path: app/Module/HtmlBlockModule.php - + message: "#^Parameter \\#1 \\$items of method Illuminate\\\\Support\\\\Collection\\<int,string\\>\\:\\:merge\\(\\) expects Illuminate\\\\Contracts\\\\Support\\\\Arrayable\\<int, string\\>\\|iterable\\<int, string\\>, Illuminate\\\\Support\\\\Collection\\<int, mixed\\> given\\.$#" + count: 2 + path: app/Module/IndividualFactsTabModule.php + + - message: "#^Cannot call method xref\\(\\) on Fisharebest\\\\Webtrees\\\\Family\\|null\\.$#" count: 1 path: app/Module/InteractiveTree/TreeView.php @@ -2671,6 +2676,16 @@ parameters: path: app/Module/RecentChangesModule.php - + message: "#^Access to an undefined property object\\:\\:\\$record\\.$#" + count: 2 + path: app/Module/RecentChangesModule.php + + - + message: "#^Access to an undefined property object\\:\\:\\$time\\.$#" + count: 4 + path: app/Module/RecentChangesModule.php + + - message: "#^Access to an undefined property object\\:\\:\\$user_id\\.$#" count: 1 path: app/Module/RecentChangesModule.php @@ -2696,6 +2711,11 @@ parameters: path: app/Module/RecentChangesModule.php - + message: "#^Parameter \\#1 \\$items of method Illuminate\\\\Support\\\\Collection\\<\\(int\\|string\\),Fisharebest\\\\Webtrees\\\\Individual\\>\\:\\:merge\\(\\) expects Illuminate\\\\Contracts\\\\Support\\\\Arrayable\\<\\(int\\|string\\), Fisharebest\\\\Webtrees\\\\Individual\\>\\|iterable\\<\\(int\\|string\\), Fisharebest\\\\Webtrees\\\\Individual\\>, Illuminate\\\\Support\\\\Collection\\<\\(int\\|string\\), Fisharebest\\\\Webtrees\\\\Family\\> given\\.$#" + count: 1 + path: app/Module/RecentChangesModule.php + + - message: "#^Cannot call method getMap\\(\\) on mixed\\.$#" count: 1 path: app/Module/RedirectLegacyUrlsModule.php @@ -2776,6 +2796,11 @@ parameters: path: app/Module/ResearchTaskModule.php - + message: "#^Parameter \\#1 \\$items of method Illuminate\\\\Support\\\\Collection\\<int,Fisharebest\\\\Webtrees\\\\Individual\\>\\:\\:merge\\(\\) expects Illuminate\\\\Contracts\\\\Support\\\\Arrayable\\<int, Fisharebest\\\\Webtrees\\\\Individual\\>\\|iterable\\<int, Fisharebest\\\\Webtrees\\\\Individual\\>, Illuminate\\\\Support\\\\Collection\\<int, Fisharebest\\\\Webtrees\\\\Family\\> given\\.$#" + count: 1 + path: app/Module/ResearchTaskModule.php + + - message: "#^Cannot access property \\$new_gedcom on mixed\\.$#" count: 1 path: app/Module/ReviewChangesModule.php @@ -2816,6 +2841,11 @@ parameters: path: app/Module/ShareAnniversaryModule.php - + message: "#^Parameter \\#1 \\$items of method Illuminate\\\\Support\\\\Collection\\<int,Fisharebest\\\\Webtrees\\\\Fact\\>\\:\\:merge\\(\\) expects Illuminate\\\\Contracts\\\\Support\\\\Arrayable\\<int, Fisharebest\\\\Webtrees\\\\Fact\\>\\|iterable\\<int, Fisharebest\\\\Webtrees\\\\Fact\\>, Illuminate\\\\Support\\\\Collection\\<int, Illuminate\\\\Support\\\\Collection\\<int, Fisharebest\\\\Webtrees\\\\Fact\\>\\> given\\.$#" + count: 1 + path: app/Module/ShareAnniversaryModule.php + + - message: "#^Parameter \\#1 \\$callback of method Illuminate\\\\Support\\\\Collection\\<\\(int\\|string\\),mixed\\>\\:\\:map\\(\\) expects callable\\(mixed, int\\|string\\)\\: Fisharebest\\\\Webtrees\\\\Family, Closure\\(object\\)\\: Fisharebest\\\\Webtrees\\\\Family given\\.$#" count: 1 path: app/Module/SiteMapModule.php @@ -2891,6 +2921,26 @@ parameters: path: app/Module/StatcounterModule.php - + message: "#^Access to an undefined property object\\:\\:\\$age\\.$#" + count: 6 + path: app/Module/StatisticsChartModule.php + + - + message: "#^Access to an undefined property object\\:\\:\\$d_gid\\.$#" + count: 6 + path: app/Module/StatisticsChartModule.php + + - + message: "#^Access to an undefined property object\\:\\:\\$f_numchil\\.$#" + count: 2 + path: app/Module/StatisticsChartModule.php + + - + message: "#^Access to an undefined property object\\:\\:\\$total\\.$#" + count: 2 + path: app/Module/StatisticsChartModule.php + + - message: "#^Binary operation \"\\+\" between int and int\\|string results in an error\\.$#" count: 1 path: app/Module/StatisticsChartModule.php @@ -2901,7 +2951,7 @@ parameters: path: app/Module/StatisticsChartModule.php - - message: "#^Binary operation \"/\" between stdClass and 365\\.25 results in an error\\.$#" + message: "#^Binary operation \"/\" between object and 365\\.25 results in an error\\.$#" count: 3 path: app/Module/StatisticsChartModule.php @@ -3771,6 +3821,11 @@ parameters: path: app/Services/CalendarService.php - + message: "#^Parameter \\#1 \\$items of method Illuminate\\\\Support\\\\Collection\\<string,Fisharebest\\\\Webtrees\\\\Individual\\>\\:\\:merge\\(\\) expects Illuminate\\\\Contracts\\\\Support\\\\Arrayable\\<string, Fisharebest\\\\Webtrees\\\\Individual\\>\\|iterable\\<string, Fisharebest\\\\Webtrees\\\\Individual\\>, Illuminate\\\\Support\\\\Collection\\<int, Fisharebest\\\\Webtrees\\\\Individual\\> given\\.$#" + count: 1 + path: app/Services/ChartService.php + + - message: "#^Cannot access offset string on mixed\\.$#" count: 2 path: app/Services/ClipboardService.php @@ -3991,6 +4046,16 @@ parameters: path: app/Services/IndividualFactsService.php - + message: "#^Parameter \\#1 \\$items of method Illuminate\\\\Support\\\\Collection\\<int,Fisharebest\\\\Webtrees\\\\Fact\\>\\:\\:merge\\(\\) expects Illuminate\\\\Contracts\\\\Support\\\\Arrayable\\<int, Fisharebest\\\\Webtrees\\\\Fact\\>\\|iterable\\<int, Fisharebest\\\\Webtrees\\\\Fact\\>, Illuminate\\\\Support\\\\Collection\\<int, mixed\\> given\\.$#" + count: 2 + path: app/Services/IndividualFactsService.php + + - + message: "#^Parameter \\#1 \\$items of method Illuminate\\\\Support\\\\Collection\\<int,Fisharebest\\\\Webtrees\\\\Individual\\>\\:\\:merge\\(\\) expects Illuminate\\\\Contracts\\\\Support\\\\Arrayable\\<int, Fisharebest\\\\Webtrees\\\\Individual\\>\\|iterable\\<int, Fisharebest\\\\Webtrees\\\\Individual\\>, Illuminate\\\\Support\\\\Collection\\<int, Fisharebest\\\\Webtrees\\\\Family\\> given\\.$#" + count: 2 + path: app/Services/IndividualFactsService.php + + - message: "#^Parameter \\#2 \\$spouse of method Fisharebest\\\\Webtrees\\\\Services\\\\IndividualFactsService\\:\\:spouseFacts\\(\\) expects Fisharebest\\\\Webtrees\\\\Individual, Fisharebest\\\\Webtrees\\\\Individual\\|null given\\.$#" count: 1 path: app/Services/IndividualFactsService.php @@ -4581,7 +4646,7 @@ parameters: path: app/Site.php - - message: "#^Method Fisharebest\\\\Webtrees\\\\Statistics\\:\\:statsAgeQuery\\(\\) should return array\\<array\\<stdClass\\>\\> but returns array\\<stdClass\\>\\.$#" + message: "#^Method Fisharebest\\\\Webtrees\\\\Statistics\\:\\:statsAgeQuery\\(\\) should return array\\<array\\<object\\>\\> but returns array\\<object\\>\\.$#" count: 1 path: app/Statistics.php @@ -4597,17 +4662,17 @@ parameters: - message: "#^Access to an undefined property object\\:\\:\\$age\\.$#" - count: 1 + count: 2 path: app/Statistics/Google/ChartAge.php - message: "#^Access to an undefined property object\\:\\:\\$century\\.$#" - count: 1 + count: 2 path: app/Statistics/Google/ChartAge.php - message: "#^Access to an undefined property object\\:\\:\\$sex\\.$#" - count: 1 + count: 2 path: app/Statistics/Google/ChartAge.php - @@ -4627,12 +4692,12 @@ parameters: - message: "#^Access to an undefined property object\\:\\:\\$century\\.$#" - count: 1 + count: 2 path: app/Statistics/Google/ChartBirth.php - message: "#^Access to an undefined property object\\:\\:\\$total\\.$#" - count: 1 + count: 2 path: app/Statistics/Google/ChartBirth.php - @@ -4642,12 +4707,12 @@ parameters: - message: "#^Access to an undefined property object\\:\\:\\$century\\.$#" - count: 1 + count: 2 path: app/Statistics/Google/ChartChildren.php - message: "#^Access to an undefined property object\\:\\:\\$total\\.$#" - count: 1 + count: 2 path: app/Statistics/Google/ChartChildren.php - @@ -4657,12 +4722,12 @@ parameters: - message: "#^Access to an undefined property object\\:\\:\\$century\\.$#" - count: 1 + count: 2 path: app/Statistics/Google/ChartDeath.php - message: "#^Access to an undefined property object\\:\\:\\$total\\.$#" - count: 1 + count: 2 path: app/Statistics/Google/ChartDeath.php - @@ -4682,12 +4747,12 @@ parameters: - message: "#^Access to an undefined property object\\:\\:\\$century\\.$#" - count: 1 + count: 2 path: app/Statistics/Google/ChartDivorce.php - message: "#^Access to an undefined property object\\:\\:\\$total\\.$#" - count: 1 + count: 2 path: app/Statistics/Google/ChartDivorce.php - @@ -4712,12 +4777,12 @@ parameters: - message: "#^Access to an undefined property object\\:\\:\\$century\\.$#" - count: 1 + count: 2 path: app/Statistics/Google/ChartMarriage.php - message: "#^Access to an undefined property object\\:\\:\\$total\\.$#" - count: 1 + count: 2 path: app/Statistics/Google/ChartMarriage.php - @@ -4727,17 +4792,17 @@ parameters: - message: "#^Access to an undefined property object\\:\\:\\$age\\.$#" - count: 1 + count: 2 path: app/Statistics/Google/ChartMarriageAge.php - message: "#^Access to an undefined property object\\:\\:\\$century\\.$#" - count: 1 + count: 2 path: app/Statistics/Google/ChartMarriageAge.php - message: "#^Access to an undefined property object\\:\\:\\$sex\\.$#" - count: 1 + count: 2 path: app/Statistics/Google/ChartMarriageAge.php - @@ -4847,7 +4912,7 @@ parameters: - message: "#^Access to an undefined property object\\:\\:\\$age\\.$#" - count: 3 + count: 5 path: app/Statistics/Repository/FamilyRepository.php - @@ -4956,7 +5021,7 @@ parameters: path: app/Statistics/Repository/FamilyRepository.php - - message: "#^Method Fisharebest\\\\Webtrees\\\\Statistics\\\\Repository\\\\FamilyRepository\\:\\:statsChildrenQuery\\(\\) should return array\\<stdClass\\> but returns array\\.$#" + message: "#^Method Fisharebest\\\\Webtrees\\\\Statistics\\\\Repository\\\\FamilyRepository\\:\\:statsChildrenQuery\\(\\) should return array\\<object\\> but returns array\\.$#" count: 1 path: app/Statistics/Repository/FamilyRepository.php @@ -4966,7 +5031,7 @@ parameters: path: app/Statistics/Repository/FamilyRepository.php - - message: "#^Parameter \\#1 \\$callback of method Illuminate\\\\Support\\\\Collection\\<\\(int\\|string\\),mixed\\>\\:\\:map\\(\\) expects callable\\(mixed, int\\|string\\)\\: stdClass, Closure\\(stdClass\\)\\: stdClass given\\.$#" + message: "#^Parameter \\#1 \\$callback of method Illuminate\\\\Support\\\\Collection\\<\\(int\\|string\\),mixed\\>\\:\\:map\\(\\) expects callable\\(mixed, int\\|string\\)\\: object, Closure\\(object\\)\\: object given\\.$#" count: 1 path: app/Statistics/Repository/FamilyRepository.php @@ -5101,7 +5166,7 @@ parameters: path: app/Statistics/Repository/IndividualRepository.php - - message: "#^Method Fisharebest\\\\Webtrees\\\\Statistics\\\\Repository\\\\IndividualRepository\\:\\:statsAgeQuery\\(\\) should return array\\<stdClass\\> but returns array\\.$#" + message: "#^Method Fisharebest\\\\Webtrees\\\\Statistics\\\\Repository\\\\IndividualRepository\\:\\:statsAgeQuery\\(\\) should return array\\<object\\> but returns array\\.$#" count: 1 path: app/Statistics/Repository/IndividualRepository.php |
