From f4418923840eb14d7a9ef36c3d7e49deed9b3a97 Mon Sep 17 00:00:00 2001 From: Tim Goudriaan Date: Mon, 14 Sep 2026 11:58:09 +0200 Subject: [PATCH] fix: use class methods to construct mount The beluga-php/docker-php-api changed the Mount class in v7.1.45.5 to a non-ArrayObject class causing this package to not set any mount options --- src/Container/GenericContainer.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Container/GenericContainer.php b/src/Container/GenericContainer.php index 4fd5639..d9cf72e 100644 --- a/src/Container/GenericContainer.php +++ b/src/Container/GenericContainer.php @@ -215,11 +215,11 @@ public function withHostname(string $hostname): static public function withMount(string $localPath, string $containerPath): static { - $this->mounts[] = new Mount([ - 'type' => 'bind', - 'source' => $localPath, - 'target' => $containerPath, - ]); + $mount = new Mount(); + $mount->setType('bind'); + $mount->setSource($localPath); + $mount->setTarget($containerPath); + $this->mounts[] = $mount; return $this; }