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)
187187 /**
188188 * @inheritdoc
189189 */
190- public function setAttribute ($ key , $ value )
190+ public function setAttribute ($ key , $ value ): static
191191 {
192192 // Convert _id to ObjectID.
193193 if ($ key == '_id ' && is_string ($ value )) {
@@ -516,13 +516,9 @@ public function __call($method, $parameters)
516516 }
517517
518518 /**
519- * Add the casted attributes to the attributes array.
520- *
521- * @param array $attributes
522- * @param array $mutatedAttributes
523- * @return array
519+ * @inheritdoc
524520 */
525- protected function addCastAttributesToArray (array $ attributes , array $ mutatedAttributes )
521+ protected function addCastAttributesToArray (array $ attributes , array $ mutatedAttributes ): array
526522 {
527523 foreach ($ this ->getCasts () as $ key => $ castType ) {
528524 if (! Arr::has ($ attributes , $ key ) || Arr::has ($ mutatedAttributes , $ key )) {
You can’t perform that action at this time.
0 commit comments