minor #42228 [Lock] recommend createIndex over ensureIndex (kralos)
minor #42228 [Lock] recommend createIndex over ensureIndex (kralos)

This PR was merged into the 5.2 branch.

Discussion
----------

[Lock] recommend createIndex over ensureIndex

| Q             | A
| ------------- | ---
| Branch?       | 5.2
| Bug fix?      | no - kinda (phpdoc only fix)
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #42227
| License       | MIT
| Doc PR        | https://github.com/symfony/symfony-docs/pull/15547

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
-------

4f8d8ee85d #42227 update phpdoc to recommend createIndex over ensureIndex

stof/symfony,curry684/symfony,mpdude/symfony,HeahDude/symfony,stof/symfony,tucksaun/symfony,damienalexandre/symfony,d-ph/symfony,phramz/symfony,nicolas-grekas/symfony,ro0NL/symfony,HeahDude/symfony,derrabus/symfony,hhamon/symfony,ogizanagi/symfony,oleg-andreyev/symfony,ro0NL/symfony,tucksaun/symfony,ogizanagi/symfony,damienalexandre/symfony,mpdude/symfony,HeahDude/symfony,Tobion/symfony,ogizanagi/symfony,sgehrig/symfony,sgehrig/symfony,d-ph/symfony,mpdude/symfony,derrabus/symfony,curry684/symfony,Tobion/symfony,symfony/symfony,nicolas-grekas/symfony,symfony/symfony,mpdude/symfony,hhamon/symfony,d-ph/symfony,paradajozsef/symfony,tucksaun/symfony,symfony/symfony,xabbuh/symfony,ro0NL/symfony,ogizanagi/symfony,phramz/symfony,symfony/symfony,stof/symfony,oleg-andreyev/symfony,phramz/symfony,damienalexandre/symfony,hhamon/symfony,damienalexandre/symfony,oleg-andreyev/symfony,xabbuh/symfony,paradajozsef/symfony,nicolas-grekas/symfony,hhamon/symfony,derrabus/symfony,sgehrig/symfony,phramz/symfony,ro0NL/symfony,sgehrig/symfony,xabbuh/symfony,stof/symfony,derrabus/symfony,tucksaun/symfony,paradajozsef/symfony,curry684/symfony,oleg-andreyev/symfony,Tobion/symfony,d-ph/symfony,curry684/symfony,HeahDude/symfony,nicolas-grekas/symfony,xabbuh/symfony,Tobion/symfony,paradajozsef/symfony