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

Case mismatch for MongoDB\Driver\Monitoring\addSubscriber function #10003

Closed
fredden opened this issue Oct 10, 2023 · 2 comments · Fixed by phpstan/phpstan-src#2673
Closed

Case mismatch for MongoDB\Driver\Monitoring\addSubscriber function #10003

fredden opened this issue Oct 10, 2023 · 2 comments · Fixed by phpstan/phpstan-src#2673

Comments

@fredden
Copy link

fredden commented Oct 10, 2023

Bug report

The official documentation[1] says the function is called MongoDB\Driver\Monitoring\addSubscriber, but PHPStan recommends using mongodb\driver\monitoring\addsubscriber instead. This is causing issues over in ComposerRequireChecker[2]

[1] https://www.php.net/manual/en/function.mongodb.driver.monitoring.addsubscriber.php
[2] maglnet/ComposerRequireChecker#432

Code snippet that reproduces the problem

https://phpstan.org/r/e74e86d4-3bf8-41f5-95d3-4744dda0d40f

Expected output

Error on line 7:
Call to function MongoDB\Driver\Monitoring\addSubscriber() with incorrect case: mongodb\driver\monitoring\addsubscriber

No error on line 8.

Did PHPStan help you today? Did it make you happy in any way?

No response

@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src#2673

Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants