From 9675be6c3dc2cb3d66d706f8805e803aec8fbc5f 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;