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 MongoDB Manager stubs #2429

Closed
wants to merge 4 commits into from

Conversation

@phpstan-bot
Copy link
Collaborator

You've opened the pull request against the latest branch 1.11.x. If your code is relevant on 1.10.x and you want it to be released sooner, please rebase your pull request and change its target to 1.10.x.

@GromNaN GromNaN force-pushed the mongodb-executebulkwrite branch from 92fa547 to 1a38d9e Compare May 31, 2023 11:32
@GromNaN GromNaN changed the base branch from 1.11.x to 1.10.x May 31, 2023 11:32
@GromNaN GromNaN force-pushed the mongodb-executebulkwrite branch from 1a38d9e to 708915e Compare May 31, 2023 13:45
Comment on lines 6780 to 6781
'MongoDB\Driver\Manager::executeDelete' => ['MongoDB\Driver\WriteResult', 'namespace'=>'string', 'filter'=>'array|object', 'deleteOptions='=>'array', 'writeConcern='=>'MongoDB\Driver\WriteConcern'],
'MongoDB\Driver\Manager::executeInsert' => ['MongoDB\Driver\WriteResult', 'namespace'=>'string', 'document'=>'array|object', 'writeConcern='=>'MongoDB\Driver\WriteConcern'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did they ever exist? I think we need a script update this file for the ext-mongodb reference.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, these methods never existed.

resources/functionMap.php Show resolved Hide resolved
resources/functionMap.php Outdated Show resolved Hide resolved
resources/functionMap.php Outdated Show resolved Hide resolved
resources/functionMap.php Outdated Show resolved Hide resolved
@GromNaN GromNaN force-pushed the mongodb-executebulkwrite branch from 0dc1121 to 27d1114 Compare June 12, 2023 12:41
Copy link
Author

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated MongoDB\Driver\Manager using ext-mongodb source stubs: https://github.com/mongodb/mongo-php-driver/blob/master/src/MongoDB/Manager.stub.php

resources/functionMap.php Show resolved Hide resolved
resources/functionMap.php Outdated Show resolved Hide resolved
resources/functionMap.php Outdated Show resolved Hide resolved
resources/functionMap.php Outdated Show resolved Hide resolved
resources/functionMap.php Outdated Show resolved Hide resolved
@GromNaN GromNaN changed the title Fix MongoDB executeBulkWrite stub Fix MongoDB Manager stubs Jun 12, 2023
@GromNaN
Copy link
Author

GromNaN commented Jun 20, 2023

Replaced by #2473

@GromNaN GromNaN closed this Jun 20, 2023
@GromNaN GromNaN deleted the mongodb-executebulkwrite branch June 20, 2023 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants