From 696d9d5c6f0510dab774984c5672eda0ffe7cdfd Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Wed, 21 Apr 2021 15:37:52 +0100 Subject: Testing --- phpstan-baseline.neon | 99 +++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 72 insertions(+), 27 deletions(-) (limited to 'phpstan-baseline.neon') diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 69d65232a0..4f28981996 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -36,29 +36,19 @@ parameters: path: app/Fact.php - - message: "#^Parameter \\#1 \\$commonMark of method League\\\\CommonMark\\\\Converter\\:\\:convertToHtml\\(\\) expects string, string\\|null given\\.$#" - count: 1 - path: app/Filter.php - - - - message: "#^Array \\(array\\\\) does not accept string\\|null\\.$#" - count: 1 - path: app/Functions/Functions.php - - - - message: "#^Call to an undefined method Fisharebest\\\\Webtrees\\\\Family\\|Fisharebest\\\\Webtrees\\\\Individual\\:\\:childFamilies\\(\\)\\.$#" + message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|null given\\.$#" count: 1 - path: app/Functions/Functions.php + path: app/Factories/SlugFactory.php - - message: "#^Call to an undefined method Fisharebest\\\\Webtrees\\\\Family\\|Fisharebest\\\\Webtrees\\\\Individual\\:\\:spouseFamilies\\(\\)\\.$#" + message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, string\\|false given\\.$#" count: 1 - path: app/Functions/Functions.php + path: app/Factories/SlugFactory.php - - message: "#^Method Fisharebest\\\\Webtrees\\\\Functions\\\\Functions\\:\\:getRelationshipNameFromPath\\(\\) should return string but returns string\\|null\\.$#" + message: "#^Parameter \\#1 \\$commonMark of method League\\\\CommonMark\\\\Converter\\:\\:convertToHtml\\(\\) expects string, string\\|null given\\.$#" count: 1 - path: app/Functions/Functions.php + path: app/Filter.php - message: "#^Parameter \\#2 \\$subject of function preg_match_all expects string, string\\|null given\\.$#" @@ -164,11 +154,6 @@ parameters: count: 1 path: app/GedcomRecord.php - - - message: "#^Cannot call method transliterate\\(\\) on Transliterator\\|null\\.$#" - count: 1 - path: app/GedcomRecord.php - - message: "#^Method Fisharebest\\\\Webtrees\\\\GedcomRecord\\:\\:insertMissingSubtags\\(\\) should return string but returns string\\|null\\.$#" count: 1 @@ -186,7 +171,7 @@ parameters: - message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|null given\\.$#" - count: 3 + count: 2 path: app/GedcomRecord.php - @@ -194,11 +179,6 @@ parameters: count: 1 path: app/GedcomRecord.php - - - message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, string\\|false given\\.$#" - count: 1 - path: app/GedcomRecord.php - - message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, string\\|null given\\.$#" count: 1 @@ -549,6 +529,11 @@ parameters: count: 1 path: app/I18N.php + - + message: "#^Method Fisharebest\\\\Webtrees\\\\I18N\\:\\:language\\(\\) should return Fisharebest\\\\Webtrees\\\\Module\\\\ModuleLanguageInterface but returns Fisharebest\\\\Webtrees\\\\Module\\\\ModuleLanguageInterface\\|null\\.$#" + count: 1 + path: app/I18N.php + - message: "#^PHPDoc tag @var for variable \\$locales has no value type specified in iterable type Illuminate\\\\Support\\\\Collection\\.$#" count: 1 @@ -959,6 +944,16 @@ parameters: count: 1 path: app/Module/RecentChangesModule.php + - + message: "#^Anonymous function should return Fisharebest\\\\Webtrees\\\\GedcomRecord but returns Fisharebest\\\\Webtrees\\\\Family\\|null\\.$#" + count: 1 + path: app/Module/RelationshipsChartModule.php + + - + message: "#^Anonymous function should return Fisharebest\\\\Webtrees\\\\GedcomRecord but returns Fisharebest\\\\Webtrees\\\\Individual\\|null\\.$#" + count: 1 + path: app/Module/RelationshipsChartModule.php + - message: "#^Cannot call method gedcom\\(\\) on Fisharebest\\\\Webtrees\\\\Family\\|null\\.$#" count: 2 @@ -1029,6 +1024,11 @@ parameters: count: 1 path: app/Module/TimelineChartModule.php + - + message: "#^Method Fisharebest\\\\Webtrees\\\\Module\\\\TopSurnamesModule\\:\\:surnameCountSort\\(\\) should return int but returns float\\|int\\.$#" + count: 1 + path: app/Module/TopSurnamesModule.php + - message: "#^Cannot access property \\$body on object\\|null\\.$#" count: 1 @@ -1604,6 +1604,51 @@ parameters: count: 1 path: app/Services/PendingChangesService.php + - + message: "#^Call to an undefined method Fisharebest\\\\Webtrees\\\\Family\\|Fisharebest\\\\Webtrees\\\\Individual\\:\\:childFamilies\\(\\)\\.$#" + count: 1 + path: app/Services/RelationshipService.php + + - + message: "#^Call to an undefined method Fisharebest\\\\Webtrees\\\\Family\\|Fisharebest\\\\Webtrees\\\\Individual\\:\\:sex\\(\\)\\.$#" + count: 1 + path: app/Services/RelationshipService.php + + - + message: "#^Call to an undefined method Fisharebest\\\\Webtrees\\\\Family\\|Fisharebest\\\\Webtrees\\\\Individual\\:\\:spouseFamilies\\(\\)\\.$#" + count: 1 + path: app/Services/RelationshipService.php + + - + message: "#^Method Fisharebest\\\\Webtrees\\\\Services\\\\RelationshipService\\:\\:legacyNameAlgorithm\\(\\) should return string but returns string\\|null\\.$#" + count: 1 + path: app/Services/RelationshipService.php + + - + message: "#^Method Fisharebest\\\\Webtrees\\\\Services\\\\RelationshipService\\:\\:matchRelationships\\(\\) should return array\\ but returns array\\\\|Fisharebest\\\\Webtrees\\\\Relationship\\>\\.$#" + count: 1 + path: app/Services/RelationshipService.php + + - + message: "#^Offset 0 does not exist on array\\(\\?0 \\=\\> string, 1 \\=\\> string\\)\\.$#" + count: 1 + path: app/Services/RelationshipService.php + + - + message: "#^Parameter \\#1 \\$individual of method Fisharebest\\\\Webtrees\\\\Services\\\\RelationshipService\\:\\:reflexivePronoun\\(\\) expects Fisharebest\\\\Webtrees\\\\Individual, Fisharebest\\\\Webtrees\\\\Family\\|Fisharebest\\\\Webtrees\\\\Individual given\\.$#" + count: 1 + path: app/Services/RelationshipService.php + + - + message: "#^Parameter \\#2 \\$person1 of method Fisharebest\\\\Webtrees\\\\Services\\\\RelationshipService\\:\\:legacyNameAlgorithm\\(\\) expects Fisharebest\\\\Webtrees\\\\Individual\\|null, Fisharebest\\\\Webtrees\\\\Family\\|Fisharebest\\\\Webtrees\\\\Individual given\\.$#" + count: 1 + path: app/Services/RelationshipService.php + + - + message: "#^Parameter \\#3 \\$person2 of method Fisharebest\\\\Webtrees\\\\Services\\\\RelationshipService\\:\\:legacyNameAlgorithm\\(\\) expects Fisharebest\\\\Webtrees\\\\Individual\\|null, Fisharebest\\\\Webtrees\\\\Family\\|Fisharebest\\\\Webtrees\\\\Individual given\\.$#" + count: 1 + path: app/Services/RelationshipService.php + - message: "#^Binary operation \"\\*\" between 365 and 0\\|string results in an error\\.$#" count: 1 -- cgit v1.3