diff --git a/src/Eloquent/Model.php b/src/Eloquent/Model.php index e12f68f82..faab9a980 100644 --- a/src/Eloquent/Model.php +++ b/src/Eloquent/Model.php @@ -187,7 +187,7 @@ protected function getAttributeFromArray($key) /** * @inheritdoc */ - public function setAttribute($key, $value): static + public function setAttribute($key, $value) { // Convert _id to ObjectID. if ($key == '_id' && is_string($value)) { @@ -518,7 +518,7 @@ public function __call($method, $parameters) /** * @inheritdoc */ - protected function addCastAttributesToArray(array $attributes, array $mutatedAttributes): array + protected function addCastAttributesToArray(array $attributes, array $mutatedAttributes) { foreach ($this->getCasts() as $key => $castType) { if (! Arr::has($attributes, $key) || Arr::has($mutatedAttributes, $key)) {