File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ protected function getAttributeFromArray($key)
187
187
/**
188
188
* @inheritdoc
189
189
*/
190
- public function setAttribute ($ key , $ value )
190
+ public function setAttribute ($ key , $ value ): static
191
191
{
192
192
// Convert _id to ObjectID.
193
193
if ($ key == '_id ' && is_string ($ value )) {
@@ -516,13 +516,9 @@ public function __call($method, $parameters)
516
516
}
517
517
518
518
/**
519
- * Add the casted attributes to the attributes array.
520
- *
521
- * @param array $attributes
522
- * @param array $mutatedAttributes
523
- * @return array
519
+ * @inheritdoc
524
520
*/
525
- protected function addCastAttributesToArray (array $ attributes , array $ mutatedAttributes )
521
+ protected function addCastAttributesToArray (array $ attributes , array $ mutatedAttributes ): array
526
522
{
527
523
foreach ($ this ->getCasts () as $ key => $ castType ) {
528
524
if (! Arr::has ($ attributes , $ key ) || Arr::has ($ mutatedAttributes , $ key )) {
You can’t perform that action at this time.
0 commit comments