Fix AdminUser.php syntax error - remove invalid property declaration

pull/6333/head
Your Name 3 days ago
parent 7768d22139
commit 1b962783d8

@ -21,10 +21,6 @@ use Illuminate\Http\Resources\Json\JsonResource;
*/
class AdminUser extends JsonResource
{
/**
* @phpstan-ignore-next-line
*/
private $2fa_enabled;
/**
* Transform the resource into an array.
*
@ -43,7 +39,7 @@ class AdminUser extends JsonResource
'is_admin' => (bool) $this->is_admin,
'email' => $this->email,
'email_verified_at' => $this->email_verified_at,
'two_factor_enabled' => (bool) $this->{'2fa_enabled'},
'two_factor_enabled' => (bool) $this->{'2fa_enabled'}, // @phpstan-ignore-line
'register_source' => $this->register_source,
'app_register_ip' => $this->app_register_ip,
'has_interstitial' => (bool) $this->has_interstitial,

Loading…
Cancel
Save