Skip to content

Commit

Permalink
Remove magic param getter and params method
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Dec 3, 2024
1 parent 3425771 commit 91941b4
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/Form/FieldClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,6 @@ public function __construct(
}
}

public function __call(string $param, array $args): mixed
{
if (isset($this->$param) === true) {
return $this->$param;
}

return $this->params[$param] ?? null;
}

/**
* Sets a new value for the field
*/
Expand All @@ -68,14 +59,6 @@ public function fill(mixed $value = null): void
$this->errors = null;
}

/**
* Returns all original params for the field
*/
public function params(): array
{
return $this->params;
}

/**
* Define the props that will be sent to
* the Vue component
Expand Down

0 comments on commit 91941b4

Please sign in to comment.