mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-05-07 20:32:26 +00:00
Fixed phpstan
This commit is contained in:
+2
-9
@@ -31,7 +31,9 @@ use Laravel\Passport\HasApiTokens;
|
||||
* @property string $timezone
|
||||
* @property bool $is_placeholder
|
||||
* @property Weekday $week_start
|
||||
* @property string|null $profile_photo_path
|
||||
* @property-read Organization $currentTeam
|
||||
* @property-read string $profile_photo_url
|
||||
* @property Collection<Organization> $organizations
|
||||
* @property Collection<TimeEntry> $timeEntries
|
||||
*
|
||||
@@ -97,15 +99,6 @@ class User extends Authenticatable implements FilamentUser, MustVerifyEmail
|
||||
'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
|
||||
{
|
||||
return in_array($this->email, config('auth.super_admins', []), true) && $this->hasVerifiedEmail();
|
||||
|
||||
@@ -10,3 +10,5 @@ parameters:
|
||||
level: 7
|
||||
|
||||
checkOctaneCompatibility: true
|
||||
checkModelProperties: true
|
||||
noEnvCallsOutsideOfConfig: true
|
||||
|
||||
Reference in New Issue
Block a user