diff --git a/src/Illuminate/View/ComponentAttributeBag.php b/src/Illuminate/View/ComponentAttributeBag.php index b5302e3e3ec4..3c3d1a27dbff 100644 --- a/src/Illuminate/View/ComponentAttributeBag.php +++ b/src/Illuminate/View/ComponentAttributeBag.php @@ -4,7 +4,6 @@ use ArrayAccess; use ArrayIterator; -use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Support\Htmlable; use Illuminate\Support\Arr; use Illuminate\Support\HtmlString; @@ -15,7 +14,7 @@ use JsonSerializable; use Traversable; -class ComponentAttributeBag implements Arrayable, ArrayAccess, IteratorAggregate, JsonSerializable, Htmlable +class ComponentAttributeBag implements ArrayAccess, IteratorAggregate, JsonSerializable, Htmlable { use Conditionable, Macroable; @@ -487,16 +486,6 @@ public function jsonSerialize(): mixed return $this->attributes; } - /** - * Convert the object into an array. - * - * @return array - */ - public function toArray() - { - return $this->attributes; - } - /** * Implode the attributes into a single HTML ready string. *