File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class Container extends Nette\ComponentModel\Container implements \ArrayAccess
26
26
27
27
private const ARRAY = 'array ' ;
28
28
29
- /** @var callable[] function ( Container $sender ): void; Occurs when the form is validated */
29
+ /** @var callable[]&(callable( Container): void)[] ; Occurs when the form is validated */
30
30
public $ onValidate ;
31
31
32
32
/** @var ControlGroup|null */
Original file line number Diff line number Diff line change 19
19
*/
20
20
class SubmitButton extends Button implements Nette \Forms \ISubmitterControl
21
21
{
22
- /** @var callable[] function ( SubmitButton $sender ): void; Occurs when the button is clicked and form is successfully validated */
22
+ /** @var callable[]&(callable( SubmitButton): void)[] ; Occurs when the button is clicked and form is successfully validated */
23
23
public $ onClick ;
24
24
25
- /** @var callable[] function ( SubmitButton $sender ): void; Occurs when the button is clicked and form is not validated */
25
+ /** @var callable[]&(callable( SubmitButton): void)[] ; Occurs when the button is clicked and form is not validated */
26
26
public $ onInvalidClick ;
27
27
28
28
/** @var array|null */
Original file line number Diff line number Diff line change @@ -81,16 +81,16 @@ class Form extends Container implements Nette\Utils\IHtmlString
81
81
/** @internal protection token ID */
82
82
public const PROTECTOR_ID = '_token_ ' ;
83
83
84
- /** @var callable[] function ( Form $sender ): void; Occurs when the form is submitted and successfully validated */
84
+ /** @var callable[]&(callable( Form, mixed ): void)[] ; Occurs when the form is submitted and successfully validated */
85
85
public $ onSuccess ;
86
86
87
- /** @var callable[] function ( Form $sender ): void; Occurs when the form is submitted and is not valid */
87
+ /** @var callable[]&(callable( Form): void)[] ; Occurs when the form is submitted and is not valid */
88
88
public $ onError ;
89
89
90
- /** @var callable[] function ( Form $sender ): void; Occurs when the form is submitted */
90
+ /** @var callable[]&(callable( Form): void)[] ; Occurs when the form is submitted */
91
91
public $ onSubmit ;
92
92
93
- /** @var callable[] function ( Form $sender ): void; Occurs before the form is rendered */
93
+ /** @var callable[]&(callable( Form): void)[] ; Occurs before the form is rendered */
94
94
public $ onRender ;
95
95
96
96
/** @var Nette\Http\IRequest used only by standalone form */
You can’t perform that action at this time.
0 commit comments