8000 minor #42230 [HttpFoundation] update phpdoc to recommend createIndex … · YaFou/symfony@a7642f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit a7642f7

Browse files
minor symfony#42230 [HttpFoundation] update phpdoc to recommend createIndex over ensureIndex (kralos)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpFoundation] update phpdoc to recommend createIndex over ensureIndex | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no - kinda (phpdoc only fix) | New feature? | no | Deprecations? | no | Tickets | Fix symfony#42229 | License | MIT | Doc PR | symfony/symfony-docs#15548 Updated PHPDoc to recommend using `createIndex` instead of `ensureIndex`. `ensureIndex` was deprecated in `mongodb 3.0.0` and removed in `mongodb 5.0.0` Commits ------- 05d8ca1 symfony#42229 update phpdoc to recommend createIndex over ensureIndex
2 parents 8c84365 + 05d8ca1 commit a7642f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Session/Storage/Handler/MongoDbSessionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class MongoDbSessionHandler extends AbstractSessionHandler
5151
* A TTL collections can be used on MongoDB 2.2+ to cleanup expired sessions
5252
* automatically. Such an index can for example look like this:
5353
*
54-
* db.<session-collection>.ensureIndex(
54+
* db.<session-collection>.createIndex(
5555
* { "<expiry-field>": 1 },
5656
* { "expireAfterSeconds": 0 }
5757
* )

0 commit comments

Comments
 (0)
0