-
Notifications
You must be signed in to change notification settings - Fork 160
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
[Feature] Add phpStan stub file so #1574
Comments
We have planned on moving towards PHP stub files (As a starting point I've begun experimenting with https://github.com/DataDog/dd-trace-php/blob/52106acf64fb45acd6c74f85fc58adead4a5ff4c/ext/hook/uhook.stub.php). Expect to see this becoming reality in the coming months :-) |
Looking forward to stub files, any movement here? Thanks! |
We are actively planning on doing this in the next 2-3 months. |
We now have the following .stub.php files (to be released soon as 0.85.0):
@ralphschindler and @NickStallman I hope that's solving all the doc and autocompletion issues you were having :-) |
Brilliant! Thanks. :) |
Is your feature request related to a problem? Please describe.
phpstan will statically analyse source code to find potential issues. Currently as ddtrace defines functions like trace_method and classes like SpanData that phpstan doesn't know about, it will complain loudly about any custom tracing code.
Describe the solution you'd like
An official stub file to give phpStan the information it needs would be fantastic.
An initial file I've been using is: ddtrace.stub
The text was updated successfully, but these errors were encountered: