Skip to content

Commit

Permalink
Revert "[10.x] Make ComponentAttributeBag Arrayable (laravel#49524)" (l…
Browse files Browse the repository at this point in the history
…aravel#49623)

This reverts commit a5f661f.
  • Loading branch information
luanfreitasdev authored and frankiejarrett committed Jan 10, 2024
1 parent 58a413a commit 9436054
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/Illuminate/View/ComponentAttributeBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

Expand Down Expand Up @@ -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.
*
Expand Down

0 comments on commit 9436054

Please sign in to comment.