-
Notifications
You must be signed in to change notification settings - Fork 208
Add script to generate function map for static analysis tools #1436
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
I made some more changes. Previously, the script always generated the function map for the installed extension version. There is now a make target called |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small suggestions but LGTM with some contributing docs added.
4873e3a
to
89b0b51
Compare
89b0b51
to
5f013af
Compare
5f013af
to
4880238
Compare
The newly added script generates function maps in the format that PHPStan and Psalm use. The function map is stored in
scripts/functionmap.php
. The script is invoked via a make target, ensuring that the extension is built to generate the correct map:The script generates maps for all functions, classes, and interfaces in the
MongoDB\BSON
andMongoDB\Driver
namespaces.