From face03aab3c1d5faff69791da8af9fa39c87402e Mon Sep 17 00:00:00 2001 From: David Grudl Date: Sun, 15 Jan 2023 06:28:37 +0100 Subject: [PATCH] wip --- src/Forms/Controls/MultiSelectBox.php | 1 + src/Forms/Controls/SelectBox.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Forms/Controls/MultiSelectBox.php b/src/Forms/Controls/MultiSelectBox.php index 3308cb52f..2340ba015 100644 --- a/src/Forms/Controls/MultiSelectBox.php +++ b/src/Forms/Controls/MultiSelectBox.php @@ -73,6 +73,7 @@ public function getControl(): Nette\Utils\Html } + /** @deprecated use setOptionAttribute() */ public function addOptionAttributes(array $attributes): static { $this->optionAttributes = $attributes + $this->optionAttributes; diff --git a/src/Forms/Controls/SelectBox.php b/src/Forms/Controls/SelectBox.php index d397a34a5..36b825cc4 100644 --- a/src/Forms/Controls/SelectBox.php +++ b/src/Forms/Controls/SelectBox.php @@ -106,6 +106,7 @@ public function getControl(): Nette\Utils\Html } + /** @deprecated use setOptionAttribute() */ public function addOptionAttributes(array $attributes): static { $this->optionAttributes = $attributes + $this->optionAttributes;