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

Fix a few MongoDB definitions in functionMap.php #2140

Merged
merged 1 commit into from Jan 4, 2023

Conversation

UCIS
Copy link
Contributor

@UCIS UCIS commented Dec 22, 2022

I think a few function definitions related to the MongoDB extension are incorrect or outdated. This results in incorrect errors as shown here: https://phpstan.org/r/0bdf022f-164a-4daa-bd51-6f127a5c3e44

I have updated two of the obvious errors, but there might be more outdated definitions. Are these definitions required at all? It appears I can get the same information using runtime reflection.

@ondrejmirtes ondrejmirtes merged commit d279f38 into phpstan:1.9.x Jan 4, 2023
@ondrejmirtes
Copy link
Member

Thank you!

@ondrejmirtes
Copy link
Member

Are these definitions required at all?

Yes. Reflection is often wrong or incomplete. PHPStan uses multiple sources of data, see https://phpstan.org/user-guide/troubleshooting-types#internal-stubs for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants