From 3b146114e2c5a494f1f0a74aaeedf97511ac1964 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Mon, 18 Nov 2024 08:18:13 -0600 Subject: [PATCH] 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 of property App\Models\User::$hidden is not covariant with PHPDoc type list of property Illuminate\Database\Eloquent\Model::$hidden" error --- app/Models/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/User.php b/app/Models/User.php index 3dfbd80eb..b003abdee 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -26,7 +26,7 @@ class User extends Authenticatable /** * The attributes that should be hidden for serialization. * - * @var array + * @var array */ protected $hidden = [ 'password',