From b8eee946dc2e069b83b045f9628aa16729c03024 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 26 Apr 2022 11:11:41 -0500 Subject: [PATCH] Revert "Fix HasAttributes::mutateAttributeForArray not accounting for hasAttributeGetMutator (#42130)" (#42141) This reverts commit 40dc9b98419e771f147bbbf34643443344ead458. --- Eloquent/Concerns/HasAttributes.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/Eloquent/Concerns/HasAttributes.php b/Eloquent/Concerns/HasAttributes.php index 8224f9831..f8a3b7167 100644 --- a/Eloquent/Concerns/HasAttributes.php +++ b/Eloquent/Concerns/HasAttributes.php @@ -667,8 +667,6 @@ protected function mutateAttributeForArray($key, $value) $value = $value instanceof DateTimeInterface ? $this->serializeDate($value) : $value; - } elseif ($this->hasAttributeGetMutator($key)) { - $value = $this->mutateAttributeMarkedAttribute($key, $value); } else { $value = $this->mutateAttribute($key, $value); }