Skip to content

Commit

Permalink
minor symfony#58867 [Messenger] fix version check to include dev vers…
Browse files Browse the repository at this point in the history
…ions (xabbuh)

This PR was merged into the 6.4 branch.

Discussion
----------

[Messenger] fix version check to include dev versions

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        |
| License       | MIT

for example, our Windows builds on the 7.1 branch use version 6.0.0-dev of the redis extension

Commits
-------

de9113b fix version check to include dev versions
  • Loading branch information
nicolas-grekas committed Nov 14, 2024
2 parents ed84570 + de9113b commit d4e3ba6
Showing 1 changed file with 1 addition and 1 deletion.
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 d4e3ba6

Please sign in to comment.