Skip to content

Commit

Permalink
Merge pull request #401 from jolicode/fix-depreacation-message
Browse files Browse the repository at this point in the history
Fix deprecation message about context->path
  • Loading branch information
lyrixx authored Apr 9, 2024
2 parents 7da8e06 + 8b74100 commit a4fbe8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a4fbe8e

Please sign in to comment.