Skip to content

Commit

Permalink
Clarify that CaPath is a directory and not a file
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoebi committed Dec 29, 2023
1 parent 88ca6d2 commit 9a85522
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/ClientTlsContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public function withCaFile(string $cafile = null): self
}

/**
* @return null|string Path to the file if one is set, otherwise `null`.
* @return null|string Path to the trusted certificates file if one is set, otherwise `null`.
*/
public function getCaFile(): ?string
{
Expand All @@ -215,7 +215,7 @@ public function getCaFile(): ?string
/**
* CAPath to check for trusted certificates.
*
* @param string|null $capath Path to the file or `null` to unset.
* @param string|null $capath Path to the directory or `null` to unset.
*
* @return self Cloned, modified instance.
*/
Expand All @@ -228,7 +228,7 @@ public function withCaPath(string $capath = null): self
}

/**
* @return null|string Path to the file if one is set, otherwise `null`.
* @return null|string Path to the trusted certificate directory if one is set, otherwise `null`.
*/
public function getCaPath(): ?string
{
Expand Down
6 changes: 3 additions & 3 deletions src/ServerTlsContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public function withCaFile(string $cafile = null): self
}

/**
* @return null|string Path to the file if one is set, otherwise `null`.
* @return null|string Path to the trusted certificates file if one is set, otherwise `null`.
*/
public function getCaFile(): ?string
{
Expand All @@ -242,7 +242,7 @@ public function getCaFile(): ?string
/**
* CAPath to check for trusted certificates.
*
* @param string|null $capath Path to the file or `null` to unset.
* @param string|null $capath Path to the directory or `null` to unset.
*
* @return self Cloned, modified instance.
*/
Expand All @@ -255,7 +255,7 @@ public function withCaPath(string $capath = null): self
}

/**
* @return null|string Path to the file if one is set, otherwise `null`.
* @return null|string Path to the trusted certificate directory if one is set, otherwise `null`.
*/
public function getCaPath(): ?string
{
Expand Down

0 comments on commit 9a85522

Please sign in to comment.