@@ -460,7 +460,7 @@ avoid stalled locks::
460460
461461 $mongo = 'mongodb://localhost/database?collection=lock';
462462 $options = [
463- 'gcProbablity ' => 0.001,
463+ 'gcProbability ' => 0.001,
464464 'database' => 'myapp',
465465 'collection' => 'lock',
466466 'uriOptions' => [],
@@ -470,16 +470,22 @@ avoid stalled locks::
470470
471471The ``MongoDbStore `` takes the following ``$options `` (depending on the first parameter type):
472472
473- ============= ================================================================================================
474- Option Description
475- ============= ================================================================================================
476- gcProbablity Should a TTL Index be created expressed as a probability from 0.0 to 1.0 (Defaults to ``0.001 ``)
473+ ============== ================================================================================================
474+ Option Description
475+ ============== ================================================================================================
476+ gcProbability Should a TTL Index be created expressed as a probability from 0.0 to 1.0 (Defaults to ``0.001 ``)
477+ gcProbablity Same as ``gcProbability ``, see the deprecation note below
477478database The name of the database
478479collection The name of the collection
479480uriOptions Array of URI options for `MongoDBClient::__construct `_
480481driverOptions Array of driver options for `MongoDBClient::__construct `_
481482============= ================================================================================================
482483
484+ .. deprecated :: 6.3
485+
486+ The ``gcProbablity `` option (notice the typo in its name) is deprecated since
487+ Symfony 6.3, use the ``gcProbability `` option instead.
488+
483489When the first parameter is a:
484490
485491``MongoDB\Collection ``:
@@ -879,7 +885,7 @@ about `Expire Data from Collections by Setting TTL`_ in MongoDB.
879885.. tip ::
880886
881887 ``MongoDbStore `` will attempt to automatically create a TTL index. It's
882- recommended to set constructor option ``gcProbablity `` to ``0.0 `` to
888+ recommended to set constructor option ``gcProbability `` to ``0.0 `` to
883889 disable this behavior if you have manually dealt with TTL index creation.
884890
885891.. caution ::
0 commit comments