diff options
| author | Greg Roach <fisharebest@gmail.com> | 2021-04-21 15:37:52 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2021-04-21 15:37:52 +0100 |
| commit | 696d9d5c6f0510dab774984c5672eda0ffe7cdfd (patch) | |
| tree | f35cd529c41644b56f57437f38c257de4c8d7d0d /phpstan-baseline.neon | |
| parent | f1de4d3448923c1b57ec33f7931278ecd780d7c7 (diff) | |
| download | webtrees-696d9d5c6f0510dab774984c5672eda0ffe7cdfd.tar.gz webtrees-696d9d5c6f0510dab774984c5672eda0ffe7cdfd.tar.bz2 webtrees-696d9d5c6f0510dab774984c5672eda0ffe7cdfd.zip | |
Testing
Diffstat (limited to 'phpstan-baseline.neon')
| -rw-r--r-- | phpstan-baseline.neon | 99 |
1 files changed, 72 insertions, 27 deletions
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\\<string\\>\\) 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\\.$#" @@ -165,11 +155,6 @@ parameters: 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 path: app/GedcomRecord.php @@ -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 - @@ -195,11 +180,6 @@ parameters: 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 path: app/GedcomRecord.php @@ -550,6 +530,11 @@ parameters: 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 path: app/I18N.php @@ -960,6 +945,16 @@ parameters: 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 path: app/Module/RelationshipsChartModule.php @@ -1030,6 +1025,11 @@ parameters: 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 path: app/Module/UserJournalModule.php @@ -1605,6 +1605,51 @@ parameters: 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\\<Fisharebest\\\\Webtrees\\\\Relationship\\> but returns array\\<array\\<string\\>\\|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 path: app/Services/SearchService.php |
