Skip to content

Commit

Permalink
fix version check to include dev versions
Browse files Browse the repository at this point in the history
for example, our Windows builds on the 7.1 branch use version 6.0.0-dev of
the redis extension
  • Loading branch information
xabbuh committed Nov 14, 2024
1 parent 162e597 commit 7dd88fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Transport/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function __construct(array $options, \Redis|Relay|\RedisCluster|null $red
}

try {
if (\extension_loaded('redis') && version_compare(phpversion('redis'), '6.0.0', '>=')) {
if (\extension_loaded('redis') && version_compare(phpversion('redis'), '6.0.0-dev', '>=')) {
$params = [
'host' => $host,
'port' => $port,
Expand Down

0 comments on commit 7dd88fc

Please sign in to comment.