Skip to content

Commit

Permalink
Form: added some @Property
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Apr 11, 2016
1 parent 9e359e6 commit 7023c22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/Controls/TextBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function setMaxLength($length)
*/
public function addFilter($filter)
{
$this->rules->addFilter($filter);
$this->getRules()->addFilter($filter);
return $this;
}

Expand Down
3 changes: 3 additions & 0 deletions src/Forms/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
*
* @property-read array $errors
* @property-read Nette\Utils\Html $elementPrototype
* @property-read IFormRenderer $renderer
* @property string $action
* @property string $method
*/
class Form extends Container implements Nette\Utils\IHtmlString
{
Expand Down

0 comments on commit 7023c22

Please sign in to comment.