summaryrefslogtreecommitdiff
path: root/phpstan-baseline.neon
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2025-01-04 13:09:18 +0000
committerGreg Roach <greg@subaqua.co.uk>2025-01-04 18:01:44 +0000
commit46492e35d0eb3cc0610e2f855e30aee8bfdf6aa0 (patch)
treea8a4aaccfa5a71baa566e48a3fb78258eabd6ee5 /phpstan-baseline.neon
parent1f50a43c63909c75ef86071e6ff05d5b0eb35632 (diff)
downloadwebtrees-46492e35d0eb3cc0610e2f855e30aee8bfdf6aa0.tar.gz
webtrees-46492e35d0eb3cc0610e2f855e30aee8bfdf6aa0.tar.bz2
webtrees-46492e35d0eb3cc0610e2f855e30aee8bfdf6aa0.zip
PHPdocs and code style for statistics
Diffstat (limited to 'phpstan-baseline.neon')
-rw-r--r--phpstan-baseline.neon76
1 files changed, 11 insertions, 65 deletions
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index 46aeb7d3e3..c792cdf923 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -5269,30 +5269,6 @@ parameters:
path: app/Module/StatcounterModule.php
-
- message: '#^Access to an undefined property object\:\:\$age\.$#'
- identifier: property.notFound
- count: 6
- path: app/Module/StatisticsChartModule.php
-
- -
- message: '#^Access to an undefined property object\:\:\$d_gid\.$#'
- identifier: property.notFound
- count: 6
- path: app/Module/StatisticsChartModule.php
-
- -
- message: '#^Access to an undefined property object\:\:\$f_numchil\.$#'
- identifier: property.notFound
- count: 2
- path: app/Module/StatisticsChartModule.php
-
- -
- message: '#^Access to an undefined property object\:\:\$total\.$#'
- identifier: property.notFound
- count: 2
- path: app/Module/StatisticsChartModule.php
-
- -
message: '#^Binary operation "\+" between int and int\|string results in an error\.$#'
identifier: binaryOp.invalid
count: 1
@@ -5305,27 +5281,9 @@ parameters:
path: app/Module/StatisticsChartModule.php
-
- message: '#^Binary operation "/" between mixed and 365\.25 results in an error\.$#'
- identifier: binaryOp.invalid
- count: 6
- path: app/Module/StatisticsChartModule.php
-
- -
- message: '#^Binary operation "/" between object and 365\.25 results in an error\.$#'
- identifier: binaryOp.invalid
- count: 3
- path: app/Module/StatisticsChartModule.php
-
- -
- message: '#^Cannot cast mixed to int\.$#'
- identifier: cast.int
- count: 3
- path: app/Module/StatisticsChartModule.php
-
- -
message: '#^Parameter \#1 \$x of method Fisharebest\\Webtrees\\Module\\StatisticsChartModule\:\:fillYData\(\) expects int\|string, mixed given\.$#'
identifier: argument.type
- count: 15
+ count: 13
path: app/Module/StatisticsChartModule.php
-
@@ -5337,7 +5295,7 @@ parameters:
-
message: '#^Parameter \#3 \$value of method Fisharebest\\Webtrees\\Module\\StatisticsChartModule\:\:fillYData\(\) expects int\|string, mixed given\.$#'
identifier: argument.type
- count: 13
+ count: 11
path: app/Module/StatisticsChartModule.php
-
@@ -7837,30 +7795,12 @@ parameters:
path: app/Statistics.php
-
- message: '#^Method Fisharebest\\Webtrees\\Statistics\:\:getTags\(\) should return array\<string\> but returns array\<string, mixed\>\.$#'
- identifier: return.type
- count: 1
- path: app/Statistics.php
-
- -
- message: '#^Method Fisharebest\\Webtrees\\Statistics\:\:statsAgeQuery\(\) should return array\<array\<object\>\> but returns array\<object\>\.$#'
+ message: '#^Method Fisharebest\\Webtrees\\Statistics\:\:getTags\(\) should return array\<string, string\> but returns array\<string, mixed\>\.$#'
identifier: return.type
count: 1
path: app/Statistics.php
-
- message: '#^Parameter \#1 \.\.\.\$params of method Fisharebest\\Webtrees\\Statistics\\Repository\\IndividualRepository\:\:totalGivennames\(\) expects string, array\<string\> given\.$#'
- identifier: argument.type
- count: 1
- path: app/Statistics.php
-
- -
- message: '#^Parameter \#1 \.\.\.\$params of method Fisharebest\\Webtrees\\Statistics\\Repository\\IndividualRepository\:\:totalSurnames\(\) expects string, array\<string\> given\.$#'
- identifier: argument.type
- count: 1
- path: app/Statistics.php
-
- -
message: '#^Access to an undefined property object\:\:\$age\.$#'
identifier: property.notFound
count: 1
@@ -8301,7 +8241,13 @@ parameters:
-
message: '#^Cannot cast mixed to int\.$#'
identifier: cast.int
- count: 9
+ count: 11
+ path: app/Statistics/Repository/FamilyRepository.php
+
+ -
+ message: '#^Method Fisharebest\\Webtrees\\Statistics\\Repository\\FamilyRepository\:\:statsMarrAgeQuery\(\) should return array\<object\{f_id\: string, d_gid\: string, age\: int\}\> but returns array\<int, object\{f_id\: mixed, d_gid\: mixed, age\: int\}&stdClass\>\.$#'
+ identifier: return.type
+ count: 1
path: app/Statistics/Repository/FamilyRepository.php
-
@@ -8361,7 +8307,7 @@ parameters:
-
message: '#^Cannot cast mixed to int\.$#'
identifier: cast.int
- count: 4
+ count: 5
path: app/Statistics/Repository/IndividualRepository.php
-