summaryrefslogtreecommitdiff
path: root/phpstan-baseline.neon
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-08-23 16:20:09 +0100
committerGreg Roach <greg@subaqua.co.uk>2021-08-23 16:58:49 +0100
commitac701fbd36864ec7630310142b9b16f78934a505 (patch)
treea038a006f3254bdc82de7aca438f10e9f65f676c /phpstan-baseline.neon
parent7983c436b964749749956115f9a70ba44187bb6a (diff)
downloadwebtrees-ac701fbd36864ec7630310142b9b16f78934a505.tar.gz
webtrees-ac701fbd36864ec7630310142b9b16f78934a505.tar.bz2
webtrees-ac701fbd36864ec7630310142b9b16f78934a505.zip
PHPdoc
Diffstat (limited to 'phpstan-baseline.neon')
-rw-r--r--phpstan-baseline.neon138
1 files changed, 54 insertions, 84 deletions
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index 25b3e16dcd..f2007b0a47 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -11,16 +11,6 @@ parameters:
path: app/Date.php
-
- message: "#^PHPDoc tag @param for parameter \\$convert_calendars with type bool\\|null is not subtype of native type bool\\.$#"
- count: 1
- path: app/Date.php
-
- -
- message: "#^PHPDoc tag @param for parameter \\$url with type bool\\|null is not subtype of native type bool\\.$#"
- count: 1
- 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
@@ -225,16 +215,6 @@ parameters:
path: app/Http/Middleware/ReadConfigIni.php
-
- message: "#^Call to function assert\\(\\) with false will always evaluate to false\\.$#"
- count: 1
- path: app/Http/Middleware/UseDatabase.php
-
- -
- message: "#^Instanceof between \\$this\\(Fisharebest\\\\Webtrees\\\\Http\\\\Middleware\\\\UseDatabase\\) and Illuminate\\\\Database\\\\Query\\\\Builder will always evaluate to false\\.$#"
- count: 1
- path: app/Http/Middleware/UseDatabase.php
-
- -
message: "#^Method Fisharebest\\\\Webtrees\\\\Http\\\\Middleware\\\\UseTransaction\\:\\:process\\(\\) should return Psr\\\\Http\\\\Message\\\\ResponseInterface but returns Psr\\\\Http\\\\Message\\\\ResponseInterface\\|null\\.$#"
count: 1
path: app/Http/Middleware/UseTransaction.php
@@ -275,11 +255,6 @@ parameters:
path: app/Http/RequestHandlers/DataFixSelect.php
-
- message: "#^Left side of && is always true\\.$#"
- count: 1
- path: app/Http/RequestHandlers/DeleteRecord.php
-
- -
message: "#^Method Fisharebest\\\\Webtrees\\\\Http\\\\RequestHandlers\\\\DeleteRecord\\:\\:removeLinks\\(\\) should return string but returns string\\|null\\.$#"
count: 1
path: app/Http/RequestHandlers/DeleteRecord.php
@@ -460,11 +435,6 @@ parameters:
path: app/Http/RequestHandlers/PendingChangesLogData.php
-
- message: "#^Method Fisharebest\\\\Webtrees\\\\Http\\\\RequestHandlers\\\\PendingChangesLogPage\\:\\:changeStatuses\\(\\) return type has no value type specified in iterable type array\\.$#"
- count: 1
- path: app/Http/RequestHandlers/PendingChangesLogPage.php
-
- -
message: "#^Parameter \\#2 \\$subject of function preg_match expects string, string\\|false given\\.$#"
count: 1
path: app/Http/RequestHandlers/PhpInformation.php
@@ -475,18 +445,8 @@ parameters:
path: app/Http/RequestHandlers/SearchGeneralPage.php
-
- message: "#^Method Fisharebest\\\\Webtrees\\\\Http\\\\RequestHandlers\\\\SearchReplaceAction\\:\\:replaceIndividualNames\\(\\) has parameter \\$records with no value type specified in iterable type Illuminate\\\\Support\\\\Collection\\.$#"
- count: 1
- path: app/Http/RequestHandlers/SearchReplaceAction.php
-
- -
- message: "#^Method Fisharebest\\\\Webtrees\\\\Http\\\\RequestHandlers\\\\SearchReplaceAction\\:\\:replacePlaces\\(\\) has parameter \\$records with no value type specified in iterable type Illuminate\\\\Support\\\\Collection\\.$#"
- count: 1
- path: app/Http/RequestHandlers/SearchReplaceAction.php
-
- -
- message: "#^Method Fisharebest\\\\Webtrees\\\\Http\\\\RequestHandlers\\\\SearchReplaceAction\\:\\:replaceRecords\\(\\) has parameter \\$records with no value type specified in iterable type Illuminate\\\\Support\\\\Collection\\.$#"
- count: 1
+ message: "#^Parameter \\#1 \\$gedcom of method Fisharebest\\\\Webtrees\\\\GedcomRecord\\:\\:updateRecord\\(\\) expects string, string\\|null given\\.$#"
+ count: 3
path: app/Http/RequestHandlers/SearchReplaceAction.php
-
@@ -530,11 +490,6 @@ parameters:
path: app/I18N.php
-
- message: "#^PHPDoc tag @var for variable \\$locales has no value type specified in iterable type Illuminate\\\\Support\\\\Collection\\.$#"
- count: 1
- path: app/I18N.php
-
- -
message: "#^Array \\(array\\<array\\<string\\>\\>\\) does not accept array\\<string, mixed\\>\\.$#"
count: 1
path: app/Individual.php
@@ -850,11 +805,6 @@ parameters:
path: app/Module/IndividualFactsTabModule.php
-
- message: "#^Variable \\$associates in PHPDoc tag @var does not match assigned variable \\$asso1\\.$#"
- count: 1
- path: app/Module/IndividualFactsTabModule.php
-
- -
message: "#^Parameter \\#2 \\$key of method Illuminate\\\\Database\\\\Query\\\\Builder\\:\\:pluck\\(\\) expects string\\|null, Illuminate\\\\Database\\\\Query\\\\Expression given\\.$#"
count: 2
path: app/Module/IndividualListModule.php
@@ -865,26 +815,6 @@ parameters:
path: app/Module/IndividualMetadataModule.php
-
- message: "#^Method Fisharebest\\\\Webtrees\\\\Module\\\\InteractiveTree\\\\TreeView\\:\\:drawChildren\\(\\) has parameter \\$familyList with no value type specified in iterable type Illuminate\\\\Support\\\\Collection\\.$#"
- count: 1
- path: app/Module/InteractiveTree/TreeView.php
-
- -
- message: "#^Method Fisharebest\\\\Webtrees\\\\Module\\\\LifespansChartModule\\:\\:chart\\(\\) has parameter \\$xrefs with no value type specified in iterable type array\\.$#"
- count: 1
- path: app/Module/LifespansChartModule.php
-
- -
- message: "#^Method Fisharebest\\\\Webtrees\\\\Module\\\\LifespansChartModule\\:\\:maxYear\\(\\) has parameter \\$individuals with no value type specified in iterable type array\\.$#"
- count: 1
- path: app/Module/LifespansChartModule.php
-
- -
- message: "#^Method Fisharebest\\\\Webtrees\\\\Module\\\\LifespansChartModule\\:\\:minYear\\(\\) has parameter \\$individuals with no value type specified in iterable type array\\.$#"
- count: 1
- path: app/Module/LifespansChartModule.php
-
- -
message: "#^Argument of an invalid type array\\<int, string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 2
path: app/Module/MinimalTheme.php
@@ -925,6 +855,11 @@ parameters:
path: app/Module/PedigreeMapModule.php
-
+ message: "#^Access to an undefined property object\\:\\:\\$features\\.$#"
+ count: 1
+ path: app/Module/PlacesModule.php
+
+ -
message: "#^Method Fisharebest\\\\Webtrees\\\\Module\\\\PrivacyPolicy\\:\\:analyticsModules\\(\\) should return Illuminate\\\\Support\\\\Collection&iterable\\<Fisharebest\\\\Webtrees\\\\Module\\\\ModuleAnalyticsInterface\\> but returns Illuminate\\\\Support\\\\Collection&iterable\\<Fisharebest\\\\Webtrees\\\\Module\\\\ModuleInterface\\>\\.$#"
count: 1
path: app/Module/PrivacyPolicy.php
@@ -1085,6 +1020,16 @@ parameters:
path: app/Module/XeneaTheme.php
-
+ message: "#^Access to an undefined property object\\:\\:\\$latitude\\.$#"
+ count: 1
+ path: app/PlaceLocation.php
+
+ -
+ message: "#^Access to an undefined property object\\:\\:\\$longitude\\.$#"
+ count: 1
+ path: app/PlaceLocation.php
+
+ -
message: "#^Cannot access property \\$latitude on object\\|null\\.$#"
count: 3
path: app/PlaceLocation.php
@@ -1710,11 +1655,6 @@ parameters:
path: app/Statistics/Google/ChartDistribution.php
-
- message: "#^Method Fisharebest\\\\Webtrees\\\\Statistics\\\\Google\\\\ChartDistribution\\:\\:createChartData\\(\\) has parameter \\$places with no value type specified in iterable type array\\.$#"
- count: 1
- path: app/Statistics/Google/ChartDistribution.php
-
- -
message: "#^Method Fisharebest\\\\Webtrees\\\\Statistics\\\\Google\\\\ChartDistribution\\:\\:createChartData\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: app/Statistics/Google/ChartDistribution.php
@@ -1745,17 +1685,52 @@ parameters:
path: app/Statistics/Google/ChartDistribution.php
-
+ message: "#^Parameter \\#1 \\$twoLetterCode of method Fisharebest\\\\Webtrees\\\\Statistics\\\\Service\\\\CountryService\\:\\:mapTwoLetterToName\\(\\) expects string, int\\|string given\\.$#"
+ count: 1
+ path: app/Statistics/Google/ChartDistribution.php
+
+ -
message: "#^Parameter \\#1 \\$century of method Fisharebest\\\\Webtrees\\\\Statistics\\\\Service\\\\CenturyService\\:\\:centuryName\\(\\) expects int, int\\|string given\\.$#"
count: 1
path: app/Statistics/Google/ChartMarriageAge.php
-
- message: "#^Method Fisharebest\\\\Webtrees\\\\Statistics\\\\Repository\\\\EventRepository\\:\\:eventQuery\\(\\) should return stdClass\\|null but returns object\\|null\\.$#"
+ message: "#^Access to an undefined property object\\:\\:\\$fact\\.$#"
+ count: 3
+ path: app/Statistics/Repository/EventRepository.php
+
+ -
+ message: "#^Access to an undefined property object\\:\\:\\$id\\.$#"
+ count: 3
+ path: app/Statistics/Repository/EventRepository.php
+
+ -
+ message: "#^Access to an undefined property object\\:\\:\\$type\\.$#"
+ count: 1
+ path: app/Statistics/Repository/EventRepository.php
+
+ -
+ message: "#^Access to an undefined property object\\:\\:\\$year\\.$#"
count: 1
path: app/Statistics/Repository/EventRepository.php
-
- message: "#^Method Fisharebest\\\\Webtrees\\\\Statistics\\\\Repository\\\\FamilyDatesRepository\\:\\:eventQuery\\(\\) should return stdClass\\|null but returns object\\|null\\.$#"
+ message: "#^Access to an undefined property object\\:\\:\\$fact\\.$#"
+ count: 1
+ path: app/Statistics/Repository/FamilyDatesRepository.php
+
+ -
+ message: "#^Access to an undefined property object\\:\\:\\$id\\.$#"
+ count: 3
+ path: app/Statistics/Repository/FamilyDatesRepository.php
+
+ -
+ message: "#^Access to an undefined property object\\:\\:\\$type\\.$#"
+ count: 1
+ path: app/Statistics/Repository/FamilyDatesRepository.php
+
+ -
+ message: "#^Access to an undefined property object\\:\\:\\$year\\.$#"
count: 1
path: app/Statistics/Repository/FamilyDatesRepository.php
@@ -1955,11 +1930,6 @@ parameters:
path: app/SurnameTradition/PatrilinealSurnameTradition.php
-
- message: "#^Method Fisharebest\\\\Webtrees\\\\View\\:\\:render\\(\\) should return string but returns string\\|false\\.$#"
- count: 1
- path: app/View.php
-
- -
message: "#^Ternary operator condition is always true\\.$#"
count: 1
path: app/Webtrees.php