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
Copy file name to clipboardExpand all lines: Store/DoctrineDbalPostgreSqlStore.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ public function __construct(#[\SensitiveParameter] Connection|string $connOrUrl)
45
45
{
46
46
if ($connOrUrlinstanceof Connection) {
47
47
if (!$connOrUrl->getDatabasePlatform() instanceof PostgreSQLPlatform) {
48
-
thrownewInvalidArgumentException(sprintf('The adapter "%s" does not support the "%s" platform.', __CLASS__, $connOrUrl->getDatabasePlatform()::class));
48
+
thrownewInvalidArgumentException(\sprintf('The adapter "%s" does not support the "%s" platform.', __CLASS__, $connOrUrl->getDatabasePlatform()::class));
49
49
}
50
50
$this->conn = $connOrUrl;
51
51
} else {
@@ -294,10 +294,10 @@ private function filterDsn(#[\SensitiveParameter] string $dsn): string
294
294
[$scheme, $rest] = explode(':', $dsn, 2);
295
295
$driver = strtok($scheme, '+');
296
296
if (!\in_array($driver, ['pgsql', 'postgres', 'postgresql'])) {
297
-
thrownewInvalidArgumentException(sprintf('The adapter "%s" does not support the "%s" driver.', __CLASS__, $driver));
297
+
thrownewInvalidArgumentException(\sprintf('The adapter "%s" does not support the "%s" driver.', __CLASS__, $driver));
if ($this->options['gcProbability'] < 0.0 || $this->options['gcProbability'] > 1.0) {
139
-
thrownewInvalidArgumentException(sprintf('"%s()" gcProbability must be a float from 0.0 to 1.0, "%f" given.', __METHOD__, $this->options['gcProbability']));
139
+
thrownewInvalidArgumentException(\sprintf('"%s()" gcProbability must be a float from 0.0 to 1.0, "%f" given.', __METHOD__, $this->options['gcProbability']));
140
140
}
141
141
142
142
if ($this->initialTtl <= 0) {
143
-
thrownewInvalidTtlException(sprintf('"%s()" expects a strictly positive TTL, got "%d".', __METHOD__, $this->initialTtl));
143
+
thrownewInvalidTtlException(\sprintf('"%s()" expects a strictly positive TTL, got "%d".', __METHOD__, $this->initialTtl));
144
144
}
145
145
}
146
146
@@ -154,11 +154,11 @@ public function __construct(Collection|Database|Client|Manager|string $mongo, ar
154
154
privatefunctionskimUri(string$uri): string
155
155
{
156
156
if (!str_starts_with($uri, 'mongodb://') && !str_starts_with($uri, 'mongodb+srv://')) {
157
-
thrownewInvalidArgumentException(sprintf('The given MongoDB Connection URI "%s" is invalid. Expecting "mongodb://" or "mongodb+srv://".', $uri));
157
+
thrownewInvalidArgumentException(\sprintf('The given MongoDB Connection URI "%s" is invalid. Expecting "mongodb://" or "mongodb+srv://".', $uri));
158
158
}
159
159
160
160
if (false === $params = parse_url($uri)) {
161
-
thrownewInvalidArgumentException(sprintf('The given MongoDB Connection URI "%s" is invalid.', $uri));
161
+
thrownewInvalidArgumentException(\sprintf('The given MongoDB Connection URI "%s" is invalid.', $uri));
Copy file name to clipboardExpand all lines: Store/PdoStore.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ public function __construct(#[\SensitiveParameter] \PDO|string $connOrDsn, #[\Se
70
70
71
71
if ($connOrDsninstanceof \PDO) {
72
72
if (\PDO::ERRMODE_EXCEPTION !== $connOrDsn->getAttribute(\PDO::ATTR_ERRMODE)) {
73
-
thrownewInvalidArgumentException(sprintf('"%s" requires PDO error mode attribute be set to throw Exceptions (i.e. $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION)).', __METHOD__));
73
+
thrownewInvalidArgumentException(\sprintf('"%s" requires PDO error mode attribute be set to throw Exceptions (i.e. $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION)).', __METHOD__));
74
74
}
75
75
76
76
$this->conn = $connOrDsn;
@@ -131,7 +131,7 @@ public function save(Key $key)
0 commit comments