Skip to content
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

Added property events reflection extension for UI\Form #38

Closed
wants to merge 1 commit into from

Conversation

adaamz
Copy link
Contributor

@adaamz adaamz commented Mar 15, 2019

Hi,
I added specific callable types for events (right now only for Form, I can continue on others if we agree) - so phpstan can detect more bugs like this

$form->onSuccess[] = function(SubmitButton $button): void {}

Is this solution viable or we should try to change nette/forms library?
nette/forms#216

@adaamz
Copy link
Contributor Author

adaamz commented May 12, 2019

pr in nette/forms was merged so we do not need this anymore

@adaamz adaamz closed this May 12, 2019
@adaamz adaamz deleted the events branch May 12, 2019 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant