Skip to content

Commit 3a21a30

Browse files
committed
always use php-bin cacert.pem - even for custom binaries
1 parent effb9a5 commit 3a21a30

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/Traits/CopiesCertificateAuthority.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ protected function copyCertificateAuthorityCertificate(): void
1717

1818
$phpBinaryDirectory = base_path('vendor/nativephp/php-bin/');
1919

20-
// Check if the class this trait is used in also uses LocatesPhpBinary
21-
/* @phpstan-ignore-next-line */
22-
if (method_exists($this, 'phpBinaryPath')) {
23-
// Get binary directory but up one level
24-
$phpBinaryDirectory = dirname(base_path($this->phpBinaryPath()));
25-
}
26-
2720
$certificateFileName = 'cacert.pem';
2821
$certFilePath = Path::join($phpBinaryDirectory, $certificateFileName);
2922

0 commit comments

Comments
 (0)