This commit is contained in:
philipp lang 2025-03-30 04:29:27 +02:00
parent 2e77823c3a
commit b33072ad20
16 changed files with 37 additions and 39 deletions

View File

@ -34,7 +34,7 @@ class Activity extends Model
}
/**
* @return BelongsToMany<Subactivity>
* @return BelongsToMany<Subactivity, $this>
*/
public function subactivities(): BelongsToMany
{

View File

@ -17,7 +17,7 @@ class CourseMember extends Model
public $guarded = [];
/**
* @return BelongsTo<Course, self>
* @return BelongsTo<Course, $this>
*/
public function course(): BelongsTo
{
@ -25,7 +25,7 @@ class CourseMember extends Model
}
/**
* @return BelongsTo<Member, self>
* @return BelongsTo<Member, $this>
*/
public function member(): BelongsTo
{

View File

@ -22,7 +22,7 @@ class Fee extends Model
public $timestamps = false;
/**
* @return HasMany<Subscription>
* @return HasMany<Subscription, $this>
*/
public function subscriptions(): HasMany
{

View File

@ -62,7 +62,7 @@ class Form extends Model implements HasMedia
}
/**
* @return HasMany<Participant>
* @return HasMany<Participant, $this>
*/
public function participants(): HasMany
{

View File

@ -33,7 +33,7 @@ class Participant extends Model implements Preventable
];
/**
* @return BelongsTo<Form, self>
* @return BelongsTo<Form, $this>
*/
public function form(): BelongsTo
{
@ -41,7 +41,7 @@ class Participant extends Model implements Preventable
}
/**
* @return HasMany<self>
* @return HasMany<Participant, $this>
*/
public function children(): HasMany
{
@ -49,7 +49,7 @@ class Participant extends Model implements Preventable
}
/**
* @return BelongsTo<Member, self>
* @return BelongsTo<Member, $this>
*/
public function member(): BelongsTo
{

View File

@ -26,7 +26,7 @@ class Group extends Model
];
/**
* @return BelongsTo<self, self>
* @return BelongsTo<Group, $this>
*/
public function parent(): BelongsTo
{
@ -34,7 +34,7 @@ class Group extends Model
}
/**
* @return HasMany<self>
* @return HasMany<Group, $this>
*/
public function children(): HasMany
{

View File

@ -37,7 +37,7 @@ class Invoice extends Model
];
/**
* @return HasMany<InvoicePosition>
* @return HasMany<InvoicePosition, $this>
*/
public function positions(): HasMany
{

View File

@ -16,7 +16,7 @@ class InvoicePosition extends Model
public $guarded = [];
/**
* @return BelongsTo<Member, self>
* @return BelongsTo<Member, $this>
*/
public function member(): BelongsTo
{
@ -24,7 +24,7 @@ class InvoicePosition extends Model
}
/**
* @return BelongsTo<Invoice, self>
* @return BelongsTo<Invoice, $this>
*/
public function invoice(): BelongsTo
{

View File

@ -23,7 +23,7 @@ class Maildispatcher extends Model
];
/**
* @return BelongsTo<Mailgateway, self>
* @return BelongsTo<Mailgateway, $this>
*/
public function gateway(): BelongsTo
{

View File

@ -2,12 +2,13 @@
namespace App\Member;
use Database\Factories\Member\BankAccountFactory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class BankAccount extends Model
{
/** @use HasFactory<\Database\Factories\\App\Member\BankAccountFactory> */
/** @use HasFactory<BankAccountFactory> */
use HasFactory;
public $guarded = [];

View File

@ -196,7 +196,7 @@ class Member extends Model implements Geolocatable
// ---------------------------------- Relations ----------------------------------
/**
* @return BelongsTo<Country, self>
* @return BelongsTo<Country, $this>
*/
public function country(): BelongsTo
{
@ -204,7 +204,7 @@ class Member extends Model implements Geolocatable
}
/**
* @return BelongsTo<Gender, self>
* @return BelongsTo<Gender, $this>
*/
public function gender(): BelongsTo
{
@ -212,7 +212,7 @@ class Member extends Model implements Geolocatable
}
/**
* @return BelongsTo<Region, self>
* @return BelongsTo<Region, $this>
*/
public function region(): BelongsTo
{
@ -223,7 +223,7 @@ class Member extends Model implements Geolocatable
}
/**
* @return HasMany<InvoicePosition>
* @return HasMany<InvoicePosition, $this>
*/
public function invoicePositions(): HasMany
{
@ -231,7 +231,7 @@ class Member extends Model implements Geolocatable
}
/**
* @return BelongsTo<Confession, self>
* @return BelongsTo<Confession, $this>
*/
public function confession(): BelongsTo
{
@ -239,7 +239,7 @@ class Member extends Model implements Geolocatable
}
/**
* @return BelongsTo<Nationality, self>
* @return BelongsTo<Nationality, $this>
*/
public function nationality(): BelongsTo
{
@ -247,7 +247,7 @@ class Member extends Model implements Geolocatable
}
/**
* @return BelongsTo<Subscription, self>
* @return BelongsTo<Subscription, $this>
*/
public function subscription(): BelongsTo
{
@ -255,7 +255,7 @@ class Member extends Model implements Geolocatable
}
/**
* @return BelongsTo<Group, self>
* @return BelongsTo<Group, $this>
*/
public function group(): BelongsTo
{
@ -263,7 +263,7 @@ class Member extends Model implements Geolocatable
}
/**
* @return HasMany<CourseMember>
* @return HasMany<CourseMember, $this>
*/
public function courses(): HasMany
{
@ -271,7 +271,7 @@ class Member extends Model implements Geolocatable
}
/**
* @return HasMany<Membership>
* @return HasMany<Membership, $this>
*/
public function memberships(): HasMany
{
@ -279,7 +279,7 @@ class Member extends Model implements Geolocatable
}
/**
* @return HasMany<Membership>
* @return HasMany<Membership, $this>
*/
public function leaderMemberships(): HasMany
{
@ -287,7 +287,7 @@ class Member extends Model implements Geolocatable
}
/**
* @return HasMany<Membership>
* @return HasMany<Membership, $this>
*/
public function ageGroupMemberships(): HasMany
{
@ -295,7 +295,7 @@ class Member extends Model implements Geolocatable
}
/**
* @return HasOne<BankAccount>
* @return HasOne<BankAccount, $this>
*/
public function bankAccount(): HasOne
{

View File

@ -32,7 +32,7 @@ class Membership extends Model
];
/**
* @return BelongsTo<Activity, self>
* @return BelongsTo<Activity, $this>
*/
public function activity(): BelongsTo
{
@ -40,7 +40,7 @@ class Membership extends Model
}
/**
* @return BelongsTo<Group, self>
* @return BelongsTo<Group, $this>
*/
public function group(): BelongsTo
{
@ -48,7 +48,7 @@ class Membership extends Model
}
/**
* @return BelongsTo<Subactivity, self>
* @return BelongsTo<Subactivity, $this>
*/
public function subactivity(): BelongsTo
{
@ -56,7 +56,7 @@ class Membership extends Model
}
/**
* @return BelongsTo<Member, self>
* @return BelongsTo<Member, $this>
*/
public function member(): BelongsTo
{

View File

@ -25,7 +25,7 @@ class Subscription extends Model
}
/**
* @return BelongsTo<Fee, self>
* @return BelongsTo<Fee, $this>
*/
public function fee(): BelongsTo
{
@ -33,7 +33,7 @@ class Subscription extends Model
}
/**
* @return HasMany<SubscriptionChild>
* @return HasMany<SubscriptionChild, $this>
*/
public function children(): HasMany
{

View File

@ -47,7 +47,7 @@ class Subactivity extends Model
}
/**
* @return BelongsToMany<Activity>
* @return BelongsToMany<Activity, $this>
*/
public function activities(): BelongsToMany
{

View File

@ -1,6 +1,6 @@
<?php
namespace Database\Factories;
namespace Database\Factories\Member;
use App\Member\BankAccount;
use Illuminate\Database\Eloquent\Factories\Factory;

View File

@ -30,9 +30,6 @@ parameters:
ignoreErrors:
-
message: "#but does not specify its types: TData#"
-
message: "#cast\\(\\) has parameter \\$properties#"
-
message: "#^Method App\\\\Activity\\:\\:sluggable\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1