From 1b962783d809ff7618d3a6086b122bb0bccd3ca9 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 13 Nov 2025 11:06:13 +1100 Subject: [PATCH] Fix AdminUser.php syntax error - remove invalid property declaration --- app/Http/Resources/AdminUser.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/Http/Resources/AdminUser.php b/app/Http/Resources/AdminUser.php index dbdba03bc..93b358f8f 100644 --- a/app/Http/Resources/AdminUser.php +++ b/app/Http/Resources/AdminUser.php @@ -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,