Skip to content

Commit 7669dc2

Browse files
saulens22divine
andauthored
Fix: remove incompatible return type (#2517)
* Fix: remove incompatible return type * fix: remove return type for addCastAttributesToArray --------- Co-authored-by: Divine <48183131+divine@users.noreply.github.com>
1 parent 4901b57 commit 7669dc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Eloquent/Model.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ protected function getAttributeFromArray($key)
187187
/**
188188
* @inheritdoc
189189
*/
190-
public function setAttribute($key, $value): static
190+
public function setAttribute($key, $value)
191191
{
192192
// Convert _id to ObjectID.
193193
if ($key == '_id' && is_string($value)) {
@@ -518,7 +518,7 @@ public function __call($method, $parameters)
518518
/**
519519
* @inheritdoc
520520
*/
521-
protected function addCastAttributesToArray(array $attributes, array $mutatedAttributes): array
521+
protected function addCastAttributesToArray(array $attributes, array $mutatedAttributes)
522522
{
523523
foreach ($this->getCasts() as $key => $castType) {
524524
if (! Arr::has($attributes, $key) || Arr::has($mutatedAttributes, $key)) {

0 commit comments

Comments
 (0)