From 82338fd0ce78605672b9e56ca3ed9a2f3f1dd0e1 Mon Sep 17 00:00:00 2001 From: esl51 Date: Wed, 15 Apr 2020 13:03:11 +0300 Subject: [PATCH] Fix options merging ArrayHelper::merge merging from second array to first. Now we can override default options. --- src/PhoneInput.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhoneInput.php b/src/PhoneInput.php index 27904aa..4883780 100644 --- a/src/PhoneInput.php +++ b/src/PhoneInput.php @@ -58,7 +58,7 @@ public function init() */ public function run() { - $options = ArrayHelper::merge($this->defaultOptions, $this->options); + $options = ArrayHelper::merge($this->options, $this->defaultOptions); if ($this->hasModel()) { return Html::activeInput($this->htmlTagType, $this->model, $this->attribute, $options); }