diff --git a/app/Form/Models/Form.php b/app/Form/Models/Form.php index 26b31426..60eeccfb 100644 --- a/app/Form/Models/Form.php +++ b/app/Form/Models/Form.php @@ -24,6 +24,9 @@ class Form extends Model implements HasMedia 'config' => 'json', ]; + /** + * @return SluggableConfig + */ public function sluggable(): array { return [ diff --git a/app/Member/Member.php b/app/Member/Member.php index 842b25ae..5b39bad8 100644 --- a/app/Member/Member.php +++ b/app/Member/Member.php @@ -93,7 +93,7 @@ class Member extends Model implements Geolocatable } /** - * @return array}> + * @return SluggableConfig */ public function sluggable(): array { diff --git a/phpstan.neon b/phpstan.neon index 1423a9a7..f0bf3afe 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -24,6 +24,7 @@ parameters: ContributionApiRequestArray: 'array{dateFrom: string, dateUntil: string, zipLocation: string, country: int, eventName: string, member_data: array}' MailgatewayCustomField: 'array{name: string, label: string, type: string, storeValidator: string, updateValidator: string, default: string}' MailgatewayParsedCustomField: 'array{name: string, label: string, type: string, storeValidator: string, updateValidator: string, default: string, is_required: bool}' + SluggableConfig: 'array}>' ignoreErrors: - @@ -136,16 +137,6 @@ parameters: count: 1 path: app/Payment/SubscriptionResource.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 - path: app/Providers/AuthServiceProvider.php - - - - message: "#^Property App\\\\Providers\\\\AuthServiceProvider\\:\\:\\$policies type has no value type specified in iterable type array\\.$#" - count: 1 - path: app/Providers/AuthServiceProvider.php - - message: "#^Method Database\\\\Factories\\\\ActivityFactory\\:\\:definition\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1