Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 446480e

Browse files
committed
minor #31346 [Messenger] Lowercased method calls on \Redis (chalasr)
This PR was merged into the 4.3-dev branch. Discussion ---------- [Messenger] Lowercased method calls on \Redis | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #31298 (comment) | License | MIT | Doc PR | n/a https://github.com/phpredis/phpredis/blob/64e71b5307b76f49a71ff43a09e984a80d9a7f12/php_redis.h#L231-L244 Commits ------- 2d41976 [Messenger] Lowercased method calls on \Redis
2 parents c5f450b + 2d41976 commit 446480e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function get(): ?array
7979

8080
$e = null;
8181
try {
82-
$messages = $this->connection->xReadGroup(
82+
$messages = $this->connection->xreadgroup(
8383
$this->group,
8484
$this->consumer,
8585
[$this->stream => $messageId],
@@ -119,7 +119,7 @@ public function ack(string $id): void
119119
{
120120
$e = null;
121121
try {
122-
$acknowledged = $this->connection->xAck($this->stream, $this->group, [$id]);
122+
$acknowledged = $this->connection->xack($this->stream, $this->group, [$id]);
123123
} catch (\RedisException $e) {
124124
}
125125

@@ -132,7 +132,7 @@ public function reject(string $id): void
132132
{
133133
$e = null;
134134
try {
135-
$deleted = $this->connection->xDel($this->stream, [$id]);
135+
$deleted = $this->connection->xdel($this->stream, [$id]);
136136
} catch (\RedisException $e) {
137137
}
138138

@@ -145,7 +145,7 @@ public function add(string $body, array $headers)
145145
{
146146
$e = null;
147147
try {
148-
$added = $this->connection->xAdd($this->stream, '*', ['message' => json_encode(
148+
$added = $this->connection->xadd($this->stream, '*', ['message' => json_encode(
149149
['body' => $body, 'headers' => $headers]
150150
)]);
151151
} catch (\RedisException $e) {
@@ -159,7 +159,7 @@ public function add(string $body, array $headers)
159159
public function setup(): void
160160
{
161161
try {
162-
$this->connection->xGroup('CREATE', $this->stream, $this->group, 0, true);
162+
$this->connection->xgroup('CREATE', $this->stream, $this->group, 0, true);
163163
} catch (\RedisException $e) {
164164
throw new TransportException($e->getMessage(), 0, $e);
165165
}

0 commit comments

Comments
 (0)