From 01d2c44cd3bc72c6415e5e46ba393f4068a878bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Fri, 29 May 2026 17:25:12 +0200 Subject: [PATCH] Fix builder castor command --- .castor/docker.php | 4 ++-- .github/workflows/ci.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.castor/docker.php b/.castor/docker.php index 6fffbda..6965b66 100644 --- a/.castor/docker.php +++ b/.castor/docker.php @@ -2,8 +2,8 @@ namespace docker; +use Castor\Attribute\AsArgsAfterOptionEnd; use Castor\Attribute\AsOption; -use Castor\Attribute\AsRawTokens; use Castor\Attribute\AsTask; use Castor\Context; use Castor\Helper\PathHelper; @@ -158,7 +158,7 @@ function stop( * @param array $params */ #[AsTask(description: 'Opens a shell (bash) or proxy any command to the builder container', aliases: ['builder'])] -function builder(#[AsRawTokens] array $params = []): int +function builder(#[AsArgsAfterOptionEnd] array $params = []): int { $c = context()->withEnvironment($_ENV + $_SERVER); diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b50942f..8bb2d2b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,7 +58,7 @@ jobs: - name: "Run PHPStan" run: | # PHPStan need the container to be compiled - castor --context=ci builder bin/console about --env=dev + castor --context=ci builder -- bin/console about --env=dev castor qa:phpstan - name: "Run PHPUnit"