Skip to content

Commit 57ff04d

Browse files
committed
Merge branch '1.x' into 2.x
* 1.x: fix: Replace str_starts_with by strncmp (PHP7 compatibility)
2 parents 46bebc3 + 7c191ea commit 57ff04d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Configurator/DockerComposeConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ private function normalizeConfig(array $config): array
151151
return ['compose.yaml' => $config];
152152
}
153153

154-
if (!str_starts_with($key, 'docker-')) {
154+
if (strncmp($key, 'docker-', 7)) {
155155
continue;
156156
}
157157

0 commit comments

Comments
 (0)