-
-
Notifications
You must be signed in to change notification settings - Fork 151
Revert callable type of Form::$onSuccess to accept mixed #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
https://github.com/nette/forms/blob/d9fc6d6/src/Forms/Form.php#L84 Could you also change |
|
Currently best workaround is function(Form $form, $mappedValues): void {
/** @var MappedValues $values */
$mappedValues = $mappedValues;
} |
|
I've opened an issue for that (#224) but yes, |
|
@mabar I'm for |
|
Updated the PR to fix #224 |
|
Thanks |
The second parameter for `onValidate` callback (`$values`) documented as `mixed` to follow the consensus for `onSuccess` (in #223)
See forum thread. The import was missing, causing static analysis to report false positives.