Skip to content

Commit 07e35fa

Browse files
committed
fix: Replace str_starts_with by strncmp (PHP7 compatibility)
1 parent 5529871 commit 07e35fa

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)