Skip to content

Commit

Permalink
We don’t need the toArray method anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
aerni committed Apr 25, 2024
1 parent 91274c4 commit f5dd122
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/Form/Step.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@

use Aerni\LivewireForms\Enums\StepStatus;
use Aerni\LivewireForms\Fields\Field;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
use Livewire\Livewire;

class Step implements Arrayable
class Step
{
public function __construct(
public int $number,
Expand Down Expand Up @@ -96,15 +95,4 @@ public function validate(): void
*/
$component->setErrorBag($previousErrorBag);
}

public function toArray(): array
{
return [
'number' => $this->number,
'fields' => $this->fields,
'status' => $this->status->value,
'display' => $this->display,
'instructions' => $this->instructions,
];
}
}

0 comments on commit f5dd122

Please sign in to comment.