8000 match `HidesAttributes` docblocks (#6495) · laravel/laravel@3b14611 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3b14611

Browse files
authored
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
1 parent 3622d74 commit 3b14611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class User extends Authenticatable
2626
/**
2727
* The attributes that should be hidden for serialization.
2828
*
29-
* @var array<int, string>
29+
* @var array<string>
3030
*/
3131
protected $hidden = [
3232
'password',

0 commit comments

Comments
 (0)
0