Skip to content

Commit

Permalink
symfony#37180 coding standards fixes for fabbot
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Bennett committed Jun 10, 2020
1 parent 14939ea commit 6e52238
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Symfony/Component/Lock/Store/MongoDbStore.php
Expand Up @@ -83,6 +83,7 @@ class MongoDbStore implements BlockingStoreInterface
*
* writeConcern, readConcern and readPreference are not specified by
* MongoDbStore meaning the collection's settings will take effect.
*
* @see https://docs.mongodb.com/manual/applications/replication/
*/
public function __construct($mongo, array $options = [], float $initialTtl = 300.0)
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Lock/Store/StoreFactory.php
Expand Up @@ -82,6 +82,7 @@ public static function createStore($connection)

case 0 === strpos($connection, 'mongodb'):
trigger_deprecation('symfony/lock', '5.2', 'Using "%s" to construct a "%s" with a connection URI string is deprecated. Use a "%s" instead.', __CLASS__, MongoDbStore::class, Collection::class);

return new MongoDbStore($connection);

case 0 === strpos($connection, 'mssql://'):
Expand Down

0 comments on commit 6e52238

Please sign in to comment.