From d0c6942141de71a26da4b28b87b764f818db1dd1 Mon Sep 17 00:00:00 2001 From: Bastian Allgeier Date: Mon, 2 Dec 2024 18:36:14 +0100 Subject: [PATCH] Remove magic param getter and params method --- src/Form/FieldClass.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/Form/FieldClass.php b/src/Form/FieldClass.php index abf530a43c..a7272de40b 100644 --- a/src/Form/FieldClass.php +++ b/src/Form/FieldClass.php @@ -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 */ @@ -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