Fixed phpstan

This commit is contained in:
Constantin Graf
2024-04-15 22:27:47 +02:00
parent 1972fc51aa
commit d48b38293d
2 changed files with 4 additions and 9 deletions
+2 -9
View File
@@ -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();
+2
View File
@@ -10,3 +10,5 @@ parameters:
level: 7
checkOctaneCompatibility: true
checkModelProperties: true
noEnvCallsOutsideOfConfig: true