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 f4e42ad

Browse filesBrowse files
alexander-schranznicolas-grekas
authored andcommitted
Fix redis connection error message
Use correct instance of redis to getLastError
1 parent c4015ed commit f4e42ad
Copy full SHA for f4e42ad

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎src/Symfony/Component/Messenger/Transport/RedisExt/Connection.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Transport/RedisExt/Connection.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ public function __construct(array $configuration, array $connectionCredentials =
6161
}
6262

6363
if (null !== $auth && !$this->connection->auth($auth)) {
64-
throw new InvalidArgumentException('Redis connection failed: '.$redis->getLastError());
64+
throw new InvalidArgumentException('Redis connection failed: '.$this->connection->getLastError());
6565
}
6666

6767
if (($dbIndex = $configuration['dbindex'] ?? self::DEFAULT_OPTIONS['dbindex']) && !$this->connection->select($dbIndex)) {
68-
throw new InvalidArgumentException('Redis connection failed: '.$redis->getLastError());
68+
throw new InvalidArgumentException('Redis connection failed: '.$this->connection->getLastError());
6969
}
7070

7171
foreach (['stream', 'group', 'consumer'] as $key) {

0 commit comments

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