summaryrefslogtreecommitdiff
path: root/phpstan-baseline.neon
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2022-05-30 14:49:02 +0100
committerGreg Roach <greg@subaqua.co.uk>2022-05-30 14:49:02 +0100
commit8a270a95196493ac786e4d3686d5578369b5e569 (patch)
treefc316611b52d3747a473551452840ef631195946 /phpstan-baseline.neon
parent352bd396f944a449a229e394abc071136bb37e8e (diff)
downloadwebtrees-8a270a95196493ac786e4d3686d5578369b5e569.tar.gz
webtrees-8a270a95196493ac786e4d3686d5578369b5e569.tar.bz2
webtrees-8a270a95196493ac786e4d3686d5578369b5e569.zip
Update phpstan baseline
Diffstat (limited to 'phpstan-baseline.neon')
-rw-r--r--phpstan-baseline.neon24
1 files changed, 22 insertions, 2 deletions
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index fa344b057f..1508074dd0 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -326,6 +326,11 @@ parameters:
path: app/GedcomFilters/GedcomEncodingFilter.php
-
+ message: "#^Argument of an invalid type array\\<int, string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
+ count: 2
+ path: app/GedcomRecord.php
+
+ -
message: "#^Cannot call method attribute\\(\\) on mixed\\.$#"
count: 1
path: app/GedcomRecord.php
@@ -351,6 +356,11 @@ parameters:
path: app/GedcomRecord.php
-
+ message: "#^Parameter \\#2 \\$haystack of function in_array 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
@@ -807,7 +817,7 @@ parameters:
-
message: "#^Offset 0 does not exist on array\\|null\\.$#"
- count: 2
+ count: 1
path: app/Http/RequestHandlers/MapDataImportAction.php
-
@@ -1496,6 +1506,11 @@ parameters:
path: app/Module/HtmlBlockModule.php
-
+ message: "#^Parameter \\#2 \\$exclude_facts of method Fisharebest\\\\Webtrees\\\\Services\\\\IndividualFactsService\\:\\:familyFacts\\(\\) expects Illuminate\\\\Support\\\\Collection&iterable\\<int, string\\>, Illuminate\\\\Support\\\\Collection&iterable\\<string, Fisharebest\\\\Webtrees\\\\Module\\\\ModuleInterface\\> given\\.$#"
+ count: 1
+ path: app/Module/IndividualFactsTabModule.php
+
+ -
message: "#^Parameter \\#2 \\$exclude_facts of method Fisharebest\\\\Webtrees\\\\Services\\\\IndividualFactsService\\:\\:individualFacts\\(\\) expects Illuminate\\\\Support\\\\Collection&iterable\\<int, string\\>, Illuminate\\\\Support\\\\Collection&iterable\\<string, Fisharebest\\\\Webtrees\\\\Module\\\\ModuleInterface\\> given\\.$#"
count: 1
path: app/Module/IndividualFactsTabModule.php
@@ -2656,6 +2671,11 @@ parameters:
path: app/Services/MapDataService.php
-
+ message: "#^Call to function is_float\\(\\) with int will always evaluate to false\\.$#"
+ count: 1
+ path: app/Services/MediaFileService.php
+
+ -
message: "#^Parameter \\#1 \\$column of method Illuminate\\\\Database\\\\Query\\\\Builder\\:\\:pluck\\(\\) expects string, Illuminate\\\\Database\\\\Query\\\\Expression given\\.$#"
count: 1
path: app/Services/MediaFileService.php
@@ -3161,7 +3181,7 @@ parameters:
path: app/Statistics/Repository/IndividualRepository.php
-
- message: "#^Parameter \\#2 \\$callback of function array_walk expects callable\\(int, string, mixed\\)\\: mixed, Closure\\(string, string\\)\\: void given\\.$#"
+ message: "#^Parameter \\#2 \\$callback of function array_walk expects callable\\(int, string\\)\\: mixed, Closure\\(string, string\\)\\: void given\\.$#"
count: 1
path: app/Statistics/Repository/IndividualRepository.php