summaryrefslogtreecommitdiff
path: root/phpstan-baseline.neon
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2025-02-19 10:31:03 +0000
committerGreg Roach <greg@subaqua.co.uk>2025-02-20 11:52:08 +0000
commit5aa89145798e701ba33c061d10bafe3922d42bef (patch)
tree238ba1b64e5398cc249d4aeb6c5d3ec19a28a0d7 /phpstan-baseline.neon
parent7ed595cddf45a30d37579fdfe74fab2ec7be706c (diff)
downloadwebtrees-5aa89145798e701ba33c061d10bafe3922d42bef.tar.gz
webtrees-5aa89145798e701ba33c061d10bafe3922d42bef.tar.bz2
webtrees-5aa89145798e701ba33c061d10bafe3922d42bef.zip
Code Style
Diffstat (limited to 'phpstan-baseline.neon')
-rw-r--r--phpstan-baseline.neon108
1 files changed, 3 insertions, 105 deletions
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index da1560366e..e4d64e3f09 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -1693,42 +1693,18 @@ parameters:
path: app/Http/RequestHandlers/DataFixUpdate.php
-
- message: '#^Access to an undefined property object\:\:\$type\.$#'
- identifier: property.notFound
- count: 1
- path: app/Http/RequestHandlers/DataFixUpdateAll.php
-
- -
- message: '#^Access to an undefined property object\:\:\$xref\.$#'
- identifier: property.notFound
- count: 1
- path: app/Http/RequestHandlers/DataFixUpdateAll.php
-
- -
message: '#^Binary operation "\+\=" between mixed and int results in an error\.$#'
identifier: assignOp.invalid
count: 1
path: app/Http/RequestHandlers/DataFixUpdateAll.php
-
- message: '#^Cannot access property \$xref on object\|null\.$#'
+ message: '#^Cannot access property \$xref on object\{xref\: string, type\: string\}\|null\.$#'
identifier: property.nonObject
count: 2
path: app/Http/RequestHandlers/DataFixUpdateAll.php
-
- message: '#^Parameter \#1 \$xref of method Fisharebest\\Webtrees\\Services\\DataFixService\:\:getRecordByType\(\) expects string, mixed given\.$#'
- identifier: argument.type
- count: 1
- path: app/Http/RequestHandlers/DataFixUpdateAll.php
-
- -
- message: '#^Parameter \#2 \$parameters of function route expects array\<array\<string\>\|bool\|int\|string\|null\>, array\<mixed\> given\.$#'
- identifier: argument.type
- count: 1
- path: app/Http/RequestHandlers/DataFixUpdateAll.php
-
- -
message: '#^Parameter \#2 \$params of method Fisharebest\\Webtrees\\Module\\ModuleDataFixInterface\:\:doesRecordNeedUpdate\(\) expects array\<string, string\>, array given\.$#'
identifier: argument.type
count: 1
@@ -1747,12 +1723,6 @@ parameters:
path: app/Http/RequestHandlers/DataFixUpdateAll.php
-
- message: '#^Parameter \#3 \$type of method Fisharebest\\Webtrees\\Services\\DataFixService\:\:getRecordByType\(\) expects string, mixed given\.$#'
- identifier: argument.type
- count: 1
- path: app/Http/RequestHandlers/DataFixUpdateAll.php
-
- -
message: '#^Parameter \#4 \$params of method Fisharebest\\Webtrees\\Http\\RequestHandlers\\DataFixUpdateAll\:\:createUpdateRanges\(\) expects array\<string\>, array given\.$#'
identifier: argument.type
count: 1
@@ -2029,13 +1999,13 @@ parameters:
path: app/Http/RequestHandlers/ManageMediaData.php
-
- message: '#^Cannot access offset ''0'' on array\{0\: int\<0, max\>, 1\: int\<0, max\>, 2\: int, 3\: string, mime\: string, channels\?\: int, bits\?\: int\}\|false\.$#'
+ message: '#^Cannot access offset 0 on array\{0\: int\<0, max\>, 1\: int\<0, max\>, 2\: int, 3\: string, mime\: string, channels\?\: int, bits\?\: int\}\|false\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: app/Http/RequestHandlers/ManageMediaData.php
-
- message: '#^Cannot access offset ''1'' on array\{0\: int\<0, max\>, 1\: int\<0, max\>, 2\: int, 3\: string, mime\: string, channels\?\: int, bits\?\: int\}\|false\.$#'
+ message: '#^Cannot access offset 1 on array\{0\: int\<0, max\>, 1\: int\<0, max\>, 2\: int, 3\: string, mime\: string, channels\?\: int, bits\?\: int\}\|false\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: app/Http/RequestHandlers/ManageMediaData.php
@@ -3985,12 +3955,6 @@ parameters:
path: app/Module/FanChartModule.php
-
- message: '#^Access to an undefined property object\:\:\$xref\.$#'
- identifier: property.notFound
- count: 2
- path: app/Module/FixCemeteryTag.php
-
- -
message: '#^Method Fisharebest\\Webtrees\\Module\\FixCemeteryTag\:\:individualsToFix\(\) should return Illuminate\\Support\\Collection\<int, string\>\|null but returns Illuminate\\Support\\Collection\<\(int\|string\), mixed\>\.$#'
identifier: return.type
count: 1
@@ -4003,12 +3967,6 @@ parameters:
path: app/Module/FixCemeteryTag.php
-
- message: '#^Access to an undefined property object\:\:\$xref\.$#'
- identifier: property.notFound
- count: 2
- path: app/Module/FixDuplicateLinks.php
-
- -
message: '#^Method Fisharebest\\Webtrees\\Module\\FixDuplicateLinks\:\:familiesToFix\(\) should return Illuminate\\Support\\Collection\<int, string\> but returns Illuminate\\Support\\Collection\<\(int\|string\), mixed\>\.$#'
identifier: return.type
count: 1
@@ -4081,12 +4039,6 @@ parameters:
path: app/Module/FixDuplicateLinks.php
-
- message: '#^Access to an undefined property object\:\:\$xref\.$#'
- identifier: property.notFound
- count: 2
- path: app/Module/FixMissingDeaths.php
-
- -
message: '#^Method Fisharebest\\Webtrees\\Module\\FixMissingDeaths\:\:individualsToFix\(\) should return Illuminate\\Support\\Collection\<int, string\>\|null but returns Illuminate\\Support\\Collection\<\(int\|string\), mixed\>\.$#'
identifier: return.type
count: 1
@@ -4099,12 +4051,6 @@ parameters:
path: app/Module/FixMissingDeaths.php
-
- message: '#^Access to an undefined property object\:\:\$xref\.$#'
- identifier: property.notFound
- count: 2
- path: app/Module/FixNameSlashesAndSpaces.php
-
- -
message: '#^Method Fisharebest\\Webtrees\\Module\\FixNameSlashesAndSpaces\:\:individualsToFix\(\) should return Illuminate\\Support\\Collection\<int, string\>\|null but returns Illuminate\\Support\\Collection\<\(int\|string\), mixed\>\.$#'
identifier: return.type
count: 1
@@ -4129,12 +4075,6 @@ parameters:
path: app/Module/FixNameSlashesAndSpaces.php
-
- message: '#^Access to an undefined property object\:\:\$xref\.$#'
- identifier: property.notFound
- count: 2
- path: app/Module/FixNameTags.php
-
- -
message: '#^Method Fisharebest\\Webtrees\\Module\\FixNameTags\:\:individualsToFix\(\) should return Illuminate\\Support\\Collection\<int, string\> but returns Illuminate\\Support\\Collection\<\(int\|string\), mixed\>\.$#'
identifier: return.type
count: 1
@@ -4153,12 +4093,6 @@ parameters:
path: app/Module/FixNameTags.php
-
- message: '#^Access to an undefined property object\:\:\$xref\.$#'
- identifier: property.notFound
- count: 2
- path: app/Module/FixPlaceNames.php
-
- -
message: '#^Method Fisharebest\\Webtrees\\Module\\FixPlaceNames\:\:familiesToFix\(\) should return Illuminate\\Support\\Collection\<int, string\>\|null but returns Illuminate\\Support\\Collection\<\(int\|string\), mixed\>\.$#'
identifier: return.type
count: 1
@@ -4183,12 +4117,6 @@ parameters:
path: app/Module/FixPlaceNames.php
-
- message: '#^Access to an undefined property object\:\:\$xref\.$#'
- identifier: property.notFound
- count: 2
- path: app/Module/FixPrimaryTag.php
-
- -
message: '#^Binary operation "\." between "\\n" and mixed results in an error\.$#'
identifier: binaryOp.invalid
count: 1
@@ -4213,12 +4141,6 @@ parameters:
path: app/Module/FixPrimaryTag.php
-
- message: '#^Access to an undefined property object\:\:\$xref\.$#'
- identifier: property.notFound
- count: 2
- path: app/Module/FixSearchAndReplace.php
-
- -
message: '#^Method Fisharebest\\Webtrees\\Module\\FixSearchAndReplace\:\:familiesToFix\(\) should return Illuminate\\Support\\Collection\<int, string\>\|null but returns Illuminate\\Support\\Collection\<\(int\|string\), mixed\>\.$#'
identifier: return.type
count: 1
@@ -4279,12 +4201,6 @@ parameters:
path: app/Module/FixSearchAndReplace.php
-
- message: '#^Access to an undefined property object\:\:\$xref\.$#'
- identifier: property.notFound
- count: 2
- path: app/Module/FixWtObjeSortTag.php
-
- -
message: '#^Method Fisharebest\\Webtrees\\Module\\FixWtObjeSortTag\:\:individualsToFix\(\) should return Illuminate\\Support\\Collection\<int, string\> but returns Illuminate\\Support\\Collection\<\(int\|string\), mixed\>\.$#'
identifier: return.type
count: 1
@@ -6115,24 +6031,6 @@ parameters:
path: app/Report/ReportParserGenerate.php
-
- message: '#^Cannot assign new offset to array\<string\>\|string\.$#'
- identifier: offsetAssign.dimType
- count: 1
- path: app/Report/ReportParserSetup.php
-
- -
- message: '#^Method Fisharebest\\Webtrees\\Report\\ReportParserSetup\:\:reportProperties\(\) should return array\{title\: string, description\: string, inputs\: array\<array\{name\: string, type\: string, lookup\: string, options\: string, default\: string, value\: string\}\>\} but returns array\<string, array\<string\>\|string\>\.$#'
- identifier: return.type
- count: 1
- path: app/Report/ReportParserSetup.php
-
- -
- message: '#^Property Fisharebest\\Webtrees\\Report\\ReportParserSetup\:\:\$data \(array\<string, array\<string\>\|string\>\) does not accept array\<string, mixed\>\.$#'
- identifier: assign.propertyType
- count: 1
- path: app/Report/ReportParserSetup.php
-
- -
message: '#^Binary operation "\*" between mixed and 2 results in an error\.$#'
identifier: binaryOp.invalid
count: 1