Skip to content

Commit 91941b4

Browse files
Remove magic param getter and params method
1 parent 3425771 commit 91941b4

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/Form/FieldClass.php

-17
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,6 @@ public function __construct(
5050
}
5151
}
5252

53-
public function __call(string $param, array $args): mixed
54-
{
55-
if (isset($this->$param) === true) {
56-
return $this->$param;
57-
}
58-
59-
return $this->params[$param] ?? null;
60-
}
61-
6253
/**
6354
* Sets a new value for the field
6455
*/
@@ -68,14 +59,6 @@ public function fill(mixed $value = null): void
6859
$this->errors = null;
6960
}
7061

71-
/**
72-
* Returns all original params for the field
73-
*/
74-
public function params(): array
75-
{
76-
return $this->params;
77-
}
78-
7962
/**
8063
* Define the props that will be sent to
8164
* the Vue component

0 commit comments

Comments
 (0)