match HidesAttributes docblocks (#6495)

the docblock in `HidesAttributes` was updated in #42512, so this child class should be using the same.

otherwise PHPStan throws a "PHPDoc type array<int, string> of property App\Models\User::$hidden is not covariant with PHPDoc type list<string> of  property Illuminate\Database\Eloquent\Model::$hidden" error
This commit is contained in:
Andrew Brown 2024-11-18 08:18:13 -06:00 committed by GitHub
parent 3622d746fd
commit 3b146114e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@ class User extends Authenticatable
/** /**
* The attributes that should be hidden for serialization. * The attributes that should be hidden for serialization.
* *
* @var array<int, string> * @var array<string>
*/ */
protected $hidden = [ protected $hidden = [
'password', 'password',