Skip to content

Commit 30d9d2c

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines 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)