We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6b22409 + a3dbf29 commit 677282dCopy full SHA for 677282d
src/lib/BaseStub.php
@@ -43,14 +43,8 @@ class BaseStub
43
*/
44
public function __construct($hostname, $opts, $channel = null)
45
{
46
- if (!method_exists('ChannelCredentials', 'isDefaultRootsPemSet')) {
47
- // for backwards compatibility
48
- // isDefaultRootsPemSet() may not be defined if the pecl extension
49
- // is not upgraded
50
- $ssl_roots = file_get_contents(
51
- dirname(__FILE__).'/../../etc/roots.pem'
52
- );
53
- } elseif (!ChannelCredentials::isDefaultRootsPemSet()) {
+ if (!method_exists('ChannelCredentials', 'isDefaultRootsPemSet') ||
+ !ChannelCredentials::isDefaultRootsPemSet()) {
54
$ssl_roots = file_get_contents(
55
dirname(__FILE__).'/../../etc/roots.pem'
56
);
0 commit comments