From a5be5daafd7c6ce682c2f2d976267b849fd2592e Mon Sep 17 00:00:00 2001
From: Luan Freitas <33601626+luanfreitasdev@users.noreply.github.com>
Date: Tue, 9 Jan 2024 13:55:39 -0300
Subject: [PATCH] Revert "[10.x] Make ComponentAttributeBag Arrayable (#49524)"

This reverts commit a5f661f403bd52feff3dc5d25f55fb8f97b551cc.
---
 src/Illuminate/View/ComponentAttributeBag.php | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

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.
      *