-
Notifications
You must be signed in to change notification settings - Fork 10
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
Excluding stuff #1
Comments
Yea, this package does not play well with the wordpress stubs, for instance this acf stub should not redeclare:
Now it's unusable in phpstan with WordPress stubs. |
It is not so easy as that function has no own file but lives in |
I've done a bit of this over at acf-pro-stubs, specifically: I was unsure about not including the compat stuff in Also, i removed Full disclosure, I'm not currently using PHPStan, I just made this repo to use with Intelephense, so if there are other functions that aren't playing well with PHPStan, I'll happily add them to the list. |
Closed the issue by accident. WRT my above comment, I'll be moving some of those changes over to this repo in the next little while. |
Okay! Thank you. |
Mine is sed -e '/^function determine_locale()/{N;N;d}' -i acf-stubs-${PLUGIN_VERSION}.php but it only removes the empty function leaving its docblock there. |
Actually the proper solution is to ask @elliotcondon to put it in a separate |
@paulthewalton How about picking what is unnecessary and releasing it on https://github.com/php-stubs ?
See core and WC
finder.php
.The text was updated successfully, but these errors were encountered: