Skip to content

Commit 0f773b6

Browse files
committed
fix: visibility of both packagePath and packageExe methods
We may need to use `packagePath` and `packageExe` methods of the `GithubPackage` class in other non-related classes. But currently only child classes are able to use it. Fixed by changing the visibility to `public`.
1 parent 8055a81 commit 0f773b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/Valet/Packages/GithubPackage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ protected function download(string $githubApiUrl, string $filename, string $file
162162
*
163163
* @return string
164164
*/
165-
protected function packagePath(): string {
165+
public function packagePath(): string {
166166
return valetBinPath() . $this->packageName;
167167
}
168168

@@ -171,7 +171,7 @@ protected function packagePath(): string {
171171
*
172172
* @return string
173173
*/
174-
protected function packageExe(): string {
174+
public function packageExe(): string {
175175
return $this->packagePath() . "/$this->packageName.exe";
176176
}
177177

0 commit comments

Comments
 (0)