Skip to content

Commit d4c6c28

Browse files
author
Dmitry Drozd
committed
fixed default value on setDisabled()
1 parent 8c28a06 commit d4c6c28

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Form/Element.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ public static function prepareElementName($name)
6767
return $result;
6868
}
6969

70-
public function disable($bool = true)
70+
public function disable($disable = true)
7171
{
72-
$this->setDisabled($bool)
73-
->setIgnored($bool);
72+
$this->setDisabled($disable)
73+
->setIgnored($disable);
7474

7575
return $this;
7676
}
@@ -82,7 +82,7 @@ public function setIgnored($isIgnored)
8282
return $this;
8383
}
8484

85-
public function setDisabled($isDisabled)
85+
public function setDisabled($isDisabled = true)
8686
{
8787
$this->isDisabled = $isDisabled;
8888

0 commit comments

Comments
 (0)