Skip to content

Commit 7023c22

Browse files
committed
Form: added some @Property
1 parent 9e359e6 commit 7023c22

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Forms/Controls/TextBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function setMaxLength($length)
9292
*/
9393
public function addFilter($filter)
9494
{
95-
$this->rules->addFilter($filter);
95+
$this->getRules()->addFilter($filter);
9696
return $this;
9797
}
9898

src/Forms/Form.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
*
1616
* @property-read array $errors
1717
* @property-read Nette\Utils\Html $elementPrototype
18+
* @property-read IFormRenderer $renderer
19+
* @property string $action
20+
* @property string $method
1821
*/
1922
class Form extends Container implements Nette\Utils\IHtmlString
2023
{

0 commit comments

Comments
 (0)