From 80c82c1b8e7b1c6a95a64c183df1e6e2f5a7ec93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFck=20Piera?= Date: Wed, 13 Mar 2024 10:15:06 +0100 Subject: [PATCH] Replace path argument occurences in run() documentation --- doc/getting-started/run.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/getting-started/run.md b/doc/getting-started/run.md index 8e818983..3045059d 100644 --- a/doc/getting-started/run.md +++ b/doc/getting-started/run.md @@ -66,8 +66,8 @@ function foo(): void ## Working directory By default, Castor will execute the process in the same directory as -the `castor.php` file. You can change that by setting the `path` argument. It -can be either a relative or an absolute path: +the `castor.php` file. You can change that by setting the `currentDirectory` +argument. It can be either a relative or an absolute path: ```php use Castor\Attribute\AsTask; @@ -77,8 +77,8 @@ use function Castor\run; #[AsTask()] function foo(): void { - run('pwd', path: '../'); // run the process in the parent directory of the castor.php file - run('pwd', path: '/tmp'); // run the process in the /tmp directory + run('pwd', currentDirectory: '../'); // run the process in the parent directory of the castor.php file + run('pwd', currentDirectory: '/tmp'); // run the process in the /tmp directory } ```