From 62cbd4620477a40ea2609d3666555940185b517f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 15 Jan 2026 09:02:33 +0000 Subject: [PATCH 1/3] Initial plan From 3e77609345b5fdb1e4f395f872a98da32ee31ebf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 15 Jan 2026 09:04:51 +0000 Subject: [PATCH 2/3] docs: add docblock to php() method in PhpProject Co-authored-by: aegypius <25710+aegypius@users.noreply.github.com> --- .dagger/src/PhpProject.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.dagger/src/PhpProject.php b/.dagger/src/PhpProject.php index fee989f..a545d30 100644 --- a/.dagger/src/PhpProject.php +++ b/.dagger/src/PhpProject.php @@ -22,6 +22,18 @@ class PhpProject { private static string|null $version = null; + /** + * Create a PHP container with the appropriate PHP version. + * + * This method extracts the PHP version from composer.json platform requirements + * and creates a container using the appropriate PHP image. The version is cached + * in a static property to avoid repeated lookups. + * + * @param Directory $source The source directory containing composer.json + * @param string $image The base PHP image name (default: "php") + * @param string $variant The PHP image variant (default: "cli") + * @return Container A container with the appropriate PHP version installed + */ private function php( Directory $source, string $image = "php", From 4496daccd6cbfd345d3c3ebadafccb54d98886ed Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 15 Jan 2026 09:05:39 +0000 Subject: [PATCH 3/3] docs: clarify PHP version detection in docblock Co-authored-by: aegypius <25710+aegypius@users.noreply.github.com> --- .dagger/src/PhpProject.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.dagger/src/PhpProject.php b/.dagger/src/PhpProject.php index a545d30..c772bbb 100644 --- a/.dagger/src/PhpProject.php +++ b/.dagger/src/PhpProject.php @@ -25,9 +25,9 @@ class PhpProject /** * Create a PHP container with the appropriate PHP version. * - * This method extracts the PHP version from composer.json platform requirements - * and creates a container using the appropriate PHP image. The version is cached - * in a static property to avoid repeated lookups. + * This method detects the platform PHP version using Composer and creates a + * container using the appropriate PHP image. The version is cached in a static + * property to avoid repeated lookups. * * @param Directory $source The source directory containing composer.json * @param string $image The base PHP image name (default: "php")