Skip to content

Commit

Permalink
Move all properties into constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
aerni committed Dec 18, 2023
1 parent 87d7652 commit ec3a1b3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Fields/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ abstract class Field implements Arrayable
use WithWidth;
use WithWireModel;

protected mixed $value = null;

public function __construct(protected StatamicField $field, protected string $id)
{
public function __construct(
protected StatamicField $field,
protected string $id,
protected mixed $value = null
) {
//
}

Expand Down

0 comments on commit ec3a1b3

Please sign in to comment.