File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
illuminate/Database/Eloquent/Concerns Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ trait GuardsAttributes
1414 /**
1515 * The attributes that aren't mass assignable.
1616 *
17- * @var array<string>|bool
17+ * @var array<string>
1818 */
1919 protected $ guarded = ['* ' ];
2020
@@ -28,8 +28,8 @@ trait GuardsAttributes
2828 /**
2929 * The actual columns that exist on the database and can be guarded.
3030 *
31- * @var array<string>
32- */
31+ * @var array<class- string,list<string> >
32+ */
3333 protected static $ guardableColumns = [];
3434
3535 /**
@@ -75,7 +75,7 @@ public function mergeFillable(array $fillable)
7575 */
7676 public function getGuarded ()
7777 {
78- return $ this -> guarded === false
78+ return self :: $ unguarded === true
7979 ? []
8080 : $ this ->guarded ;
8181 }
You can’t perform that action at this time.
0 commit comments