From 8b741007209c26735ef1ab3b490141a08aea42d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFck=20Piera?= Date: Tue, 9 Apr 2024 12:02:39 +0200 Subject: [PATCH] Fix deprecation message about context->path --- src/Context.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Context.php b/src/Context.php index 3d58d4d9..fc53a9a1 100644 --- a/src/Context.php +++ b/src/Context.php @@ -105,7 +105,7 @@ public function withEnvironment(array $environment, bool $keepExisting = true): public function withPath(string $path): self { - trigger_deprecation('castor', '0.15', 'The method "%s()" is deprecated, use "%s::withCurrentDirectory()" instead.', __METHOD__, __CLASS__); + trigger_deprecation('castor', '0.15', 'The method "%s()" is deprecated, use "%s::withWorkingDirectory()" instead.', __METHOD__, __CLASS__); return $this->withWorkingDirectory($path); }