Skip to content

Commit 7d35d44

Browse files
spazedg
authored andcommitted
Use phpstan onValidate definition (#226)
The second parameter for `onValidate` callback (`$values`) documented as `mixed` to follow the consensus for `onSuccess` (in #223)
1 parent adaca40 commit 7d35d44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Forms/Container.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Container extends Nette\ComponentModel\Container implements \ArrayAccess
2626

2727
private const ARRAY = 'array';
2828

29-
/** @var callable[]&(callable(Container): void)[]; Occurs when the form is validated */
29+
/** @var callable[]&(callable(Container, mixed): void)[]; Occurs when the form is validated */
3030
public $onValidate;
3131

3232
/** @var ControlGroup|null */

0 commit comments

Comments
 (0)