diff --git a/app/Letter/RememberDocument.php b/app/Letter/RememberDocument.php index 3d92cfc4..bb2d06da 100644 --- a/app/Letter/RememberDocument.php +++ b/app/Letter/RememberDocument.php @@ -35,6 +35,9 @@ class RememberDocument extends Letter return 'tex.remember'; } + /** + * @return array + */ public function getPositions(Collection $page): array { $memberIds = $page->pluck('id')->toArray(); @@ -68,11 +71,6 @@ class RememberDocument extends Letter return $page->first()->location; } - public function getUsage(Collection $page): string - { - return "Mitgliedsbeitrag für {$page->familyName}"; - } - public function sendAllLabel(): string { return 'Erinnerungen versenden'; diff --git a/phpstan.neon b/phpstan.neon index 91f73f14..1e1ad7f7 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -48,26 +48,6 @@ parameters: count: 1 path: app/Console/Kernel.php - - - message: "#^Method App\\\\Contribution\\\\DvData\\:\\:__construct\\(\\) has parameter \\$members with no value type specified in iterable type array\\.$#" - count: 1 - path: app/Contribution/DvData.php - - - - message: "#^Method App\\\\Contribution\\\\DvData\\:\\:__construct\\(\\) has parameter \\$type with no type specified\\.$#" - count: 1 - path: app/Contribution/DvData.php - - - - message: "#^Method App\\\\Contribution\\\\SolingenData\\:\\:__construct\\(\\) has parameter \\$members with no value type specified in iterable type array\\.$#" - count: 1 - path: app/Contribution/SolingenData.php - - - - message: "#^Method App\\\\Contribution\\\\SolingenData\\:\\:__construct\\(\\) has parameter \\$type with no type specified\\.$#" - count: 1 - path: app/Contribution/SolingenData.php - - message: "#^Unable to resolve the template type TKey in call to function collect$#" count: 1 @@ -213,11 +193,6 @@ parameters: count: 1 path: app/Http/Views/MemberTriesResource.php - - - message: "#^Method App\\\\Http\\\\Views\\\\MemberView\\:\\:additional\\(\\) has parameter \\$overwrites with no value type specified in iterable type array\\.$#" - count: 1 - path: app/Http/Views/MemberView.php - - message: "#^Method App\\\\Http\\\\Views\\\\MemberView\\:\\:index\\(\\) has parameter \\$filter with no value type specified in iterable type array\\.$#" count: 1 @@ -333,31 +308,6 @@ parameters: count: 1 path: app/Membership/Requests/StoreRequest.php - - - message: "#^Call to an undefined method App\\\\Pdf\\\\PdfRepository\\:\\:allLabel\\(\\)\\.$#" - count: 1 - path: app/Payment/ActionFactory.php - - - - message: "#^Call to an undefined method App\\\\Pdf\\\\PdfRepository\\:\\:createable\\(\\)\\.$#" - count: 1 - path: app/Payment/ActionFactory.php - - - - message: "#^Call to an undefined method App\\\\Pdf\\\\PdfRepository\\:\\:getDescription\\(\\)\\.$#" - count: 1 - path: app/Payment/ActionFactory.php - - - - message: "#^Call to an undefined method App\\\\Pdf\\\\PdfRepository\\:\\:linkLabel\\(\\)\\.$#" - count: 1 - path: app/Payment/ActionFactory.php - - - - message: "#^Return type of call to method Illuminate\\\\Support\\\\Collection\\\\:\\:map\\(\\) contains unresolvable type\\.$#" - count: 2 - path: app/Payment/ActionFactory.php - - message: "#^Method App\\\\Payment\\\\PaymentResource\\:\\:toArray\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 @@ -373,41 +323,6 @@ parameters: count: 1 path: app/Payment/SubscriptionResource.php - - - message: "#^Method App\\\\Pdf\\\\BillType\\:\\:getPositions\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: app/Pdf/BillType.php - - - - message: "#^Method App\\\\Pdf\\\\Data\\\\MemberEfzData\\:\\:__construct\\(\\) has parameter \\$sender with no value type specified in iterable type array\\.$#" - count: 1 - path: app/Pdf/Data/MemberEfzData.php - - - - message: "#^Method App\\\\Pdf\\\\LetterRepository\\:\\:getDescription\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: app/Pdf/LetterRepository.php - - - - message: "#^Method App\\\\Pdf\\\\LetterRepository\\:\\:getPositions\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: app/Pdf/LetterRepository.php - - - - message: "#^Unable to resolve the template type TKey in call to function collect$#" - count: 1 - path: app/Pdf/PdfRepositoryFactory.php - - - - message: "#^Unable to resolve the template type TValue in call to function collect$#" - count: 1 - path: app/Pdf/PdfRepositoryFactory.php - - - - message: "#^Method App\\\\Pdf\\\\RememberType\\:\\:getPositions\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: app/Pdf/RememberType.php - - message: "#^PHPDoc type array of property App\\\\Providers\\\\AuthServiceProvider\\:\\:\\$policies is not covariant with PHPDoc type array\\ of overridden property Illuminate\\\\Foundation\\\\Support\\\\Providers\\\\AuthServiceProvider\\:\\:\\$policies\\.$#" count: 1