Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 30d9d2c

Browse filesBrowse files
author
Joe Bennett
committed
#27345 Updated for cs
1 parent 3c1f692 commit 30d9d2c
Copy full SHA for 30d9d2c

File tree

1 file changed

+4
-4
lines changed
Filter options

1 file changed

+4
-4
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Lock/Store/MongoDbStore.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ class MongoDbStore implements StoreInterface
6161
use ExpiringStoreTrait;
6262

6363
/**
64-
* @param Client|Collection|string $mongo An instance of a Client or Collection or DSN @see https://docs.mongodb.com/manual/reference/connection-string/
65-
* @param array $options See below
66-
* @param float $initialTtl The expiration delay of locks in seconds
64+
* @param Collection|Client|string $mongo An instance of a Collection or Client or DSN @see https://docs.mongodb.com/manual/reference/connection-string/
65+
* @param array $options See below
66+
* @param float $initialTtl The expiration delay of locks in seconds
6767
*
6868
* @throws InvalidArgumentException If required options are not provided
6969
* @throws InvalidTtlException When the initial ttl is not valid
@@ -105,7 +105,7 @@ public function __construct($mongo, array $options = [], float $initialTtl = 300
105105
$this->collection = $mongo;
106106
} elseif ($mongo instanceof Client) {
107107
$this->client = $mongo;
108-
} elseif (is_string($mongo)) {
108+
} elseif (\is_string($mongo)) {
109109
$this->dsn = $mongo;
110110
} else {
111111
throw new InvalidArgumentException(sprintf('%s() requires %s or %s or DSN as first argument, "%s" given.', __METHOD__, Collection::class, Client::class, \is_object($mongo) ? \get_class($mongo) : \gettype($mongo)));

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.