Skip to content

Commit 61d100a

Browse files
Revert "[10.x] Make ComponentAttributeBag Arrayable (#49524)" (#49623)
This reverts commit a5f661f.
1 parent 299aae5 commit 61d100a

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/Illuminate/View/ComponentAttributeBag.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use ArrayAccess;
66
use ArrayIterator;
7-
use Illuminate\Contracts\Support\Arrayable;
87
use Illuminate\Contracts\Support\Htmlable;
98
use Illuminate\Support\Arr;
109
use Illuminate\Support\HtmlString;
@@ -15,7 +14,7 @@
1514
use JsonSerializable;
1615
use Traversable;
1716

18-
class ComponentAttributeBag implements Arrayable, ArrayAccess, IteratorAggregate, JsonSerializable, Htmlable
17+
class ComponentAttributeBag implements ArrayAccess, IteratorAggregate, JsonSerializable, Htmlable
1918
{
2019
use Conditionable, Macroable;
2120

@@ -487,16 +486,6 @@ public function jsonSerialize(): mixed
487486
return $this->attributes;
488487
}
489488

490-
/**
491-
* Convert the object into an array.
492-
*
493-
* @return array
494-
*/
495-
public function toArray()
496-
{
497-
return $this->attributes;
498-
}
499-
500489
/**
501490
* Implode the attributes into a single HTML ready string.
502491
*

0 commit comments

Comments
 (0)