File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ public function startableContainers(): Collection
64
64
public function startByServiceNameOrContainerId (string $ service , Collection $ startableContainers ): void
65
65
{
66
66
$ containersByServiceName = $ startableContainers
67
- ->filter (function ($ serviceName ) use ($ service ) {
68
- return Str::startsWith ($ serviceName , $ service );
67
+ ->filter (function ($ serviceName, $ key ) use ($ service ) {
68
+ return Str::startsWith ($ serviceName , $ service ) || $ key === $ service ;
69
69
});
70
70
71
71
// If we don't get any container by the service name, that probably means
Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ private function stoppableContainers(): Collection
65
65
private function stopByServiceNameOrContainerId (string $ service , Collection $ stoppableContainers ): void
66
66
{
67
67
$ containersByServiceName = $ stoppableContainers
68
- ->filter (function ($ containerName ) use ($ service ) {
69
- return Str::startsWith ($ containerName , $ service );
68
+ ->filter (function ($ containerName, $ key ) use ($ service ) {
69
+ return Str::startsWith ($ containerName , $ service ) || $ key === $ service ;
70
70
});
71
71
72
72
if ($ containersByServiceName ->isEmpty ()) {
You can’t perform that action at this time.
0 commit comments