mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02:15 +01:00
Fixed phpstan
This commit is contained in:
@@ -31,7 +31,9 @@ use Laravel\Passport\HasApiTokens;
|
|||||||
* @property string $timezone
|
* @property string $timezone
|
||||||
* @property bool $is_placeholder
|
* @property bool $is_placeholder
|
||||||
* @property Weekday $week_start
|
* @property Weekday $week_start
|
||||||
|
* @property string|null $profile_photo_path
|
||||||
* @property-read Organization $currentTeam
|
* @property-read Organization $currentTeam
|
||||||
|
* @property-read string $profile_photo_url
|
||||||
* @property Collection<Organization> $organizations
|
* @property Collection<Organization> $organizations
|
||||||
* @property Collection<TimeEntry> $timeEntries
|
* @property Collection<TimeEntry> $timeEntries
|
||||||
*
|
*
|
||||||
@@ -97,15 +99,6 @@ class User extends Authenticatable implements FilamentUser, MustVerifyEmail
|
|||||||
'week_start' => Weekday::Monday,
|
'week_start' => Weekday::Monday,
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
|
||||||
* The accessors to append to the model's array form.
|
|
||||||
*
|
|
||||||
* @var array<int, string>
|
|
||||||
*/
|
|
||||||
protected $appends = [
|
|
||||||
'profile_photo_url',
|
|
||||||
];
|
|
||||||
|
|
||||||
public function canAccessPanel(Panel $panel): bool
|
public function canAccessPanel(Panel $panel): bool
|
||||||
{
|
{
|
||||||
return in_array($this->email, config('auth.super_admins', []), true) && $this->hasVerifiedEmail();
|
return in_array($this->email, config('auth.super_admins', []), true) && $this->hasVerifiedEmail();
|
||||||
|
|||||||
@@ -10,3 +10,5 @@ parameters:
|
|||||||
level: 7
|
level: 7
|
||||||
|
|
||||||
checkOctaneCompatibility: true
|
checkOctaneCompatibility: true
|
||||||
|
checkModelProperties: true
|
||||||
|
noEnvCallsOutsideOfConfig: true
|
||||||
|
|||||||
Reference in New Issue
Block a user