Skip to content

Commit 7b21449

Browse files
jiripudildg
authored andcommitted
Revert callable type of Form::$onSuccess to accept mixed (#223)
* Add missing import * Fix callable type in Form::$onSuccess * Revert callable type of Form::$onSuccess to accept mixed (closes #224)
1 parent b3356d0 commit 7b21449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Forms/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class Form extends Container implements Nette\Utils\IHtmlString
8181
/** @internal protection token ID */
8282
public const PROTECTOR_ID = '_token_';
8383

84-
/** @var callable[]&((callable(Form, array): void)|(callable(Form, ArrayHash): 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 */
8585
public $onSuccess;
8686

8787
/** @var callable[]&(callable(Form): void)[]; Occurs when the form is submitted and is not valid */

0 commit comments

Comments
 (0)