Skip to content

Commit 133a531

Browse files
authored
Merge pull request #4 from ndeblauw/fix-boundvalue
Fix boundvalue
2 parents e1a9c7a + f910b05 commit 133a531

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/View/Components/FormElements/Component.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct($name, $label, $placeholder, $id, $comment, $require
4848
$this->value = $value;
4949
} else {
5050
$this->model = $this->getBoundTarget();
51-
$this->value = $value ?: $this->getBoundValue($bind, $name);
51+
$this->value = $value ?: $this->getBoundValue($name, $bind);
5252
}
5353
}
5454

src/View/Components/FormElements/HandlesBoundModel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function getBoundTarget()
3434
* @param string $name
3535
* @return mixed
3636
*/
37-
private function getBoundValue($bind = null, string $name)
37+
private function getBoundValue(string $name, $bind = null)
3838
{
3939
if ($bind === false) {
4040
return null;

0 commit comments

Comments
 (0)