Skip to content

Commit 7e89741

Browse files
feature #50880 [Lock] 7.0 remove deprecations in Lock Component (fafiebig)
This PR was squashed before being merged into the 7.0 branch. Discussion ---------- [Lock] 7.0 remove deprecations in Lock Component | Q | A | ------------- | --- | Branch? | 7.0 <!-- see below --> | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | yes <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | ... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT | Doc PR | ... <!-- required for new features --> <!-- Replace this notice by a short README for your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the latest branch. - For new features, provide some code snippets to help understand usage. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> Commits ------- 3a75f43 [Lock] 7.0 remove deprecations in Lock Component
2 parents 465bc72 + 3a75f43 commit 7e89741

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

UPGRADE-7.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ Lock
119119
----
120120

121121
* Add parameter `$isSameDatabase` to `DoctrineDbalStore::configureSchema()`
122+
* Remove the `gcProbablity` (notice the typo) option, use `gcProbability` instead
122123

123124
Messenger
124125
---------

src/Symfony/Component/Lock/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CHANGELOG
55
---
66

77
* Add parameter `$isSameDatabase` to `DoctrineDbalStore::configureSchema()`
8+
* Remove the `gcProbablity` (notice the typo) option, use `gcProbability` instead
89

910
6.3
1011
---

src/Symfony/Component/Lock/Store/MongoDbStore.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,6 @@ class MongoDbStore implements PersistingStoreInterface
9090
*/
9191
public function __construct(Collection|Client|string $mongo, array $options = [], float $initialTtl = 300.0)
9292
{
93-
if (isset($options['gcProbablity'])) {
94-
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__);
95-
96-
$options['gcProbability'] = $options['gcProbablity'];
97-
unset($options['gcProbablity']);
98-
}
99-
10093
$this->options = array_merge([
10194
'gcProbability' => 0.001,
10295
'database' => null,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy