From 5aa89145798e701ba33c061d10bafe3922d42bef Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Wed, 19 Feb 2025 10:31:03 +0000 Subject: Code Style --- phpstan-baseline.neon | 108 ++------------------------------------------------ 1 file changed, 3 insertions(+), 105 deletions(-) (limited to 'phpstan-baseline.neon') diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index da1560366e..e4d64e3f09 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1692,18 +1692,6 @@ parameters: count: 1 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 @@ -1711,23 +1699,11 @@ parameters: 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\\|bool\|int\|string\|null\>, array\ 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\, array given\.$#' identifier: argument.type @@ -1746,12 +1722,6 @@ parameters: count: 1 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\, array given\.$#' identifier: argument.type @@ -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 @@ -3984,12 +3954,6 @@ parameters: count: 1 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\\|null but returns Illuminate\\Support\\Collection\<\(int\|string\), mixed\>\.$#' identifier: return.type @@ -4002,12 +3966,6 @@ parameters: count: 1 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\ but returns Illuminate\\Support\\Collection\<\(int\|string\), mixed\>\.$#' identifier: return.type @@ -4080,12 +4038,6 @@ parameters: count: 6 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\\|null but returns Illuminate\\Support\\Collection\<\(int\|string\), mixed\>\.$#' identifier: return.type @@ -4098,12 +4050,6 @@ parameters: count: 1 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\\|null but returns Illuminate\\Support\\Collection\<\(int\|string\), mixed\>\.$#' identifier: return.type @@ -4128,12 +4074,6 @@ parameters: count: 1 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\ but returns Illuminate\\Support\\Collection\<\(int\|string\), mixed\>\.$#' identifier: return.type @@ -4152,12 +4092,6 @@ parameters: count: 1 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\\|null but returns Illuminate\\Support\\Collection\<\(int\|string\), mixed\>\.$#' identifier: return.type @@ -4182,12 +4116,6 @@ parameters: count: 1 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 @@ -4212,12 +4140,6 @@ parameters: count: 1 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\\|null but returns Illuminate\\Support\\Collection\<\(int\|string\), mixed\>\.$#' identifier: return.type @@ -4278,12 +4200,6 @@ parameters: count: 1 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\ but returns Illuminate\\Support\\Collection\<\(int\|string\), mixed\>\.$#' identifier: return.type @@ -6114,24 +6030,6 @@ parameters: count: 1 path: app/Report/ReportParserGenerate.php - - - message: '#^Cannot assign new offset to array\\|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\\} but returns array\\|string\>\.$#' - identifier: return.type - count: 1 - path: app/Report/ReportParserSetup.php - - - - message: '#^Property Fisharebest\\Webtrees\\Report\\ReportParserSetup\:\:\$data \(array\\|string\>\) does not accept array\\.$#' - identifier: assign.propertyType - count: 1 - path: app/Report/ReportParserSetup.php - - message: '#^Binary operation "\*" between mixed and 2 results in an error\.$#' identifier: binaryOp.invalid -- cgit v1.3