Skip to content

Commit d59c4eb

Browse files
committed
fix(rector): change array_push to array assign
1 parent 7f7b377 commit d59c4eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

system/Cache/Handlers/PredisHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function deleteMatching(string $pattern)
199199

200200
foreach (new Keyspace($this->redis, $pattern) as $key)
201201
{
202-
array_push($matchedKeys, $key);
202+
$matchedKeys[] = $key;
203203
}
204204

205205
return $this->redis->del($matchedKeys);

system/Cache/Handlers/RedisHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public function deleteMatching(string $pattern)
245245
{
246246
foreach ($keys as $key)
247247
{
248-
array_push($matchedKeys, $key);
248+
$matchedKeys[] = $key;
249249
}
250250
}
251251
}

0 commit comments

Comments
 (0)