-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
Use phpstan callable definitions #216
Conversation
Is it supported by IDEs? |
PhpStorm "supports" intersection workaround in format I do not have other IDEs like Eclipse or NetBeans... |
It seems good. |
Fixed union on Form::onSuccess. |
👍 from me |
Thanks! Can you post PR for Application too? |
This isn't exactly typesafe, we'd like to use: // $form is our own CustomForm extending Nette\Forms\Form
$form->onSuccess[] = function (CustomForm $form): void {
}); Since in No need to change anything in Nette - phpstan-nette extension for PHPStan 0.12. will contain the fixed stub :) (Yeah, I've added support for custom phpDoc stubs to fix 3rd party phpDocs.) |
This |
Let me first check if it works.
On Tue, 26 Nov 2019 at 15:40, David Grudl ***@***.***> wrote:
This callable(Form) exists for PHPStan only, so there is no problem to
change it to callable(static)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#216?email_source=notifications&email_token=AAAZTODDHQSOXGK65JJOYADQVUYPVA5CNFSM4G6V4CBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFGHQ6A#issuecomment-558659704>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAZTOBJ4ZYXNATZTXNYLXDQVUYPVANCNFSM4G6V4CBA>
.
--
Ondřej Mirtes
|
Hi,
are you interested in definition for callables like phpstan does?
format is like in php (without parameter names)
callable(params): return_type
If you are interested I can change other classes/packages.