CoreApi: fix version comparison logic

fixes #2629
This commit is contained in:
Thomas Gelf 2022-10-05 11:14:37 +02:00
parent 26e76c611e
commit 3c2815d2e9
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ class CoreApi implements DeploymentApiInterface
{
$version = $this->getVersion();
if ($version === null || (version_compare($version, '2.8.2', '>=')
&& version_compare($version, '2.10.2', '<'))
if ($version === null ||
((version_compare($version, '2.8.2', '>=') && version_compare($version, '2.10.2', '<')))
) {
$this->client->disconnect();
$this->client->setKeepAlive(false);