Lint
This commit is contained in:
parent
2e77823c3a
commit
b33072ad20
|
@ -34,7 +34,7 @@ class Activity extends Model
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return BelongsToMany<Subactivity>
|
* @return BelongsToMany<Subactivity, $this>
|
||||||
*/
|
*/
|
||||||
public function subactivities(): BelongsToMany
|
public function subactivities(): BelongsToMany
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,7 +17,7 @@ class CourseMember extends Model
|
||||||
public $guarded = [];
|
public $guarded = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return BelongsTo<Course, self>
|
* @return BelongsTo<Course, $this>
|
||||||
*/
|
*/
|
||||||
public function course(): BelongsTo
|
public function course(): BelongsTo
|
||||||
{
|
{
|
||||||
|
@ -25,7 +25,7 @@ class CourseMember extends Model
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return BelongsTo<Member, self>
|
* @return BelongsTo<Member, $this>
|
||||||
*/
|
*/
|
||||||
public function member(): BelongsTo
|
public function member(): BelongsTo
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,7 +22,7 @@ class Fee extends Model
|
||||||
public $timestamps = false;
|
public $timestamps = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return HasMany<Subscription>
|
* @return HasMany<Subscription, $this>
|
||||||
*/
|
*/
|
||||||
public function subscriptions(): HasMany
|
public function subscriptions(): HasMany
|
||||||
{
|
{
|
||||||
|
|
|
@ -62,7 +62,7 @@ class Form extends Model implements HasMedia
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return HasMany<Participant>
|
* @return HasMany<Participant, $this>
|
||||||
*/
|
*/
|
||||||
public function participants(): HasMany
|
public function participants(): HasMany
|
||||||
{
|
{
|
||||||
|
|
|
@ -33,7 +33,7 @@ class Participant extends Model implements Preventable
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return BelongsTo<Form, self>
|
* @return BelongsTo<Form, $this>
|
||||||
*/
|
*/
|
||||||
public function form(): BelongsTo
|
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
|
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
|
public function member(): BelongsTo
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,7 +26,7 @@ class Group extends Model
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return BelongsTo<self, self>
|
* @return BelongsTo<Group, $this>
|
||||||
*/
|
*/
|
||||||
public function parent(): BelongsTo
|
public function parent(): BelongsTo
|
||||||
{
|
{
|
||||||
|
@ -34,7 +34,7 @@ class Group extends Model
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return HasMany<self>
|
* @return HasMany<Group, $this>
|
||||||
*/
|
*/
|
||||||
public function children(): HasMany
|
public function children(): HasMany
|
||||||
{
|
{
|
||||||
|
|
|
@ -37,7 +37,7 @@ class Invoice extends Model
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return HasMany<InvoicePosition>
|
* @return HasMany<InvoicePosition, $this>
|
||||||
*/
|
*/
|
||||||
public function positions(): HasMany
|
public function positions(): HasMany
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@ class InvoicePosition extends Model
|
||||||
public $guarded = [];
|
public $guarded = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return BelongsTo<Member, self>
|
* @return BelongsTo<Member, $this>
|
||||||
*/
|
*/
|
||||||
public function member(): BelongsTo
|
public function member(): BelongsTo
|
||||||
{
|
{
|
||||||
|
@ -24,7 +24,7 @@ class InvoicePosition extends Model
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return BelongsTo<Invoice, self>
|
* @return BelongsTo<Invoice, $this>
|
||||||
*/
|
*/
|
||||||
public function invoice(): BelongsTo
|
public function invoice(): BelongsTo
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,7 +23,7 @@ class Maildispatcher extends Model
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return BelongsTo<Mailgateway, self>
|
* @return BelongsTo<Mailgateway, $this>
|
||||||
*/
|
*/
|
||||||
public function gateway(): BelongsTo
|
public function gateway(): BelongsTo
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,12 +2,13 @@
|
||||||
|
|
||||||
namespace App\Member;
|
namespace App\Member;
|
||||||
|
|
||||||
|
use Database\Factories\Member\BankAccountFactory;
|
||||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
class BankAccount extends Model
|
class BankAccount extends Model
|
||||||
{
|
{
|
||||||
/** @use HasFactory<\Database\Factories\\App\Member\BankAccountFactory> */
|
/** @use HasFactory<BankAccountFactory> */
|
||||||
use HasFactory;
|
use HasFactory;
|
||||||
|
|
||||||
public $guarded = [];
|
public $guarded = [];
|
||||||
|
|
|
@ -196,7 +196,7 @@ class Member extends Model implements Geolocatable
|
||||||
|
|
||||||
// ---------------------------------- Relations ----------------------------------
|
// ---------------------------------- Relations ----------------------------------
|
||||||
/**
|
/**
|
||||||
* @return BelongsTo<Country, self>
|
* @return BelongsTo<Country, $this>
|
||||||
*/
|
*/
|
||||||
public function country(): BelongsTo
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
public function bankAccount(): HasOne
|
||||||
{
|
{
|
||||||
|
|
|
@ -32,7 +32,7 @@ class Membership extends Model
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return BelongsTo<Activity, self>
|
* @return BelongsTo<Activity, $this>
|
||||||
*/
|
*/
|
||||||
public function activity(): BelongsTo
|
public function activity(): BelongsTo
|
||||||
{
|
{
|
||||||
|
@ -40,7 +40,7 @@ class Membership extends Model
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return BelongsTo<Group, self>
|
* @return BelongsTo<Group, $this>
|
||||||
*/
|
*/
|
||||||
public function group(): BelongsTo
|
public function group(): BelongsTo
|
||||||
{
|
{
|
||||||
|
@ -48,7 +48,7 @@ class Membership extends Model
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return BelongsTo<Subactivity, self>
|
* @return BelongsTo<Subactivity, $this>
|
||||||
*/
|
*/
|
||||||
public function subactivity(): BelongsTo
|
public function subactivity(): BelongsTo
|
||||||
{
|
{
|
||||||
|
@ -56,7 +56,7 @@ class Membership extends Model
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return BelongsTo<Member, self>
|
* @return BelongsTo<Member, $this>
|
||||||
*/
|
*/
|
||||||
public function member(): BelongsTo
|
public function member(): BelongsTo
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,7 +25,7 @@ class Subscription extends Model
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return BelongsTo<Fee, self>
|
* @return BelongsTo<Fee, $this>
|
||||||
*/
|
*/
|
||||||
public function fee(): BelongsTo
|
public function fee(): BelongsTo
|
||||||
{
|
{
|
||||||
|
@ -33,7 +33,7 @@ class Subscription extends Model
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return HasMany<SubscriptionChild>
|
* @return HasMany<SubscriptionChild, $this>
|
||||||
*/
|
*/
|
||||||
public function children(): HasMany
|
public function children(): HasMany
|
||||||
{
|
{
|
||||||
|
|
|
@ -47,7 +47,7 @@ class Subactivity extends Model
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return BelongsToMany<Activity>
|
* @return BelongsToMany<Activity, $this>
|
||||||
*/
|
*/
|
||||||
public function activities(): BelongsToMany
|
public function activities(): BelongsToMany
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Database\Factories;
|
namespace Database\Factories\Member;
|
||||||
|
|
||||||
use App\Member\BankAccount;
|
use App\Member\BankAccount;
|
||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
|
|
|
@ -30,9 +30,6 @@ parameters:
|
||||||
ignoreErrors:
|
ignoreErrors:
|
||||||
-
|
-
|
||||||
message: "#but does not specify its types: TData#"
|
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\\.$#"
|
message: "#^Method App\\\\Activity\\:\\:sluggable\\(\\) return type has no value type specified in iterable type array\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
|
|
Loading…
Reference in New Issue