Skip to content

Commit af971a4

Browse files
committed
Better compatibility
1 parent c4b69ec commit af971a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"require": {
2020
"ext-curl": "*",
2121
"ext-json": "*",
22-
"guzzlehttp/guzzle": "^6.5"
22+
"guzzlehttp/guzzle": ">=6.5.0"
2323
}
2424
}

src/DockerClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private function testConnection()
5555
return $this->info();
5656
} catch (\Exception $e) {
5757
$search = 'failed binding local connection end';
58-
if (str_contains(strtolower($e->getMessage()), $search)) {
58+
if (strpos(strtolower($e->getMessage()), $search) !== false) {
5959
$text = sprintf('Could not bind to docker socket at %s', $this->unixSocket);
6060
throw new DockerSocketNotFound($text);
6161
}

0 commit comments

Comments
 (0)