You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #49240 [Lock] Fix some typos in MongoDbStore (javiereguiluz)
This PR was squashed before being merged into the 6.3 branch.
Discussion
----------
[Lock] Fix some typos in MongoDbStore
| Q | A
| ------------- | ---
| Branch? | 6.3
| Bug fix? | no
| New feature? | no
| Deprecations? | yes
| Tickets | -
| License | MIT
| Doc PR | -
I didn't include this in #49239 because I don't know if this is a typo that can be fixed (maybe the code uses the same word with the typo).
Commits
-------
7b7e859 [Lock] Fix some typos in MongoDbStore
Copy file name to clipboardExpand all lines: UPGRADE-6.3.md
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,11 @@ HttpKernel
48
48
49
49
* Deprecate parameters `container.dumper.inline_factories` and `container.dumper.inline_class_loader`, use `.container.dumper.inline_factories` and `.container.dumper.inline_class_loader` instead
50
50
51
+
Lock
52
+
----
53
+
54
+
* Deprecate the `gcProbablity` option to fix a typo in its name, use the `gcProbability` option instead
trigger_deprecation('symfony/lock', '6.3', 'The "gcProbablity" option (notice the typo in its name) is deprecated in "%s"; use the "gcProbability" option instead.', __CLASS__);
@@ -117,8 +124,8 @@ public function __construct(Collection|Client|string $mongo, array $options = []
117
124
}
118
125
}
119
126
120
-
if ($this->options['gcProbablity'] < 0.0 || $this->options['gcProbablity'] > 1.0) {
121
-
thrownewInvalidArgumentException(sprintf('"%s()" gcProbablity must be a float from 0.0 to 1.0, "%f" given.', __METHOD__, $this->options['gcProbablity']));
127
+
if ($this->options['gcProbability'] < 0.0 || $this->options['gcProbability'] > 1.0) {
128
+
thrownewInvalidArgumentException(sprintf('"%s()" gcProbability must be a float from 0.0 to 1.0, "%f" given.', __METHOD__, $this->options['gcProbability']));
122
129
}
123
130
124
131
if ($this->initialTtl <= 0) {
@@ -159,7 +166,7 @@ private function skimUri(string $uri): string
159
166
/**
160
167
* Creates a TTL index to automatically remove expired locks.
161
168
*
162
-
* If the gcProbablity option is set higher than 0.0 (defaults to 0.001);
169
+
* If the gcProbability option is set higher than 0.0 (defaults to 0.001);
163
170
* there is a chance this will be called on self::save().
164
171
*
165
172
* Otherwise; this should be called once manually during database setup.
@@ -212,7 +219,7 @@ public function save(Key $key)
212
219
thrownewLockAcquiringException('Failed to acquire lock.', 0, $e);
0 commit comments