@@ -378,12 +378,12 @@ function installComposer($version, $installDir, $filename, $quiet, $disableTls,
378
378
if (!$ home ) {
379
379
if (defined ('PHP_WINDOWS_VERSION_MAJOR ' )) {
380
380
if (!getenv ('APPDATA ' )) {
381
- throw new \ RuntimeException ('The APPDATA or COMPOSER_HOME environment variable must be set for composer to install correctly ' );
381
+ throw new RuntimeException ('The APPDATA or COMPOSER_HOME environment variable must be set for composer to install correctly ' );
382
382
}
383
383
$ home = strtr (getenv ('APPDATA ' ), '\\' , '/ ' ) . '/Composer ' ;
384
384
} else {
385
385
if (!getenv ('HOME ' )) {
386
- throw new \ RuntimeException ('The HOME or COMPOSER_HOME environment variable must be set for composer to install correctly ' );
386
+ throw new RuntimeException ('The HOME or COMPOSER_HOME environment variable must be set for composer to install correctly ' );
387
387
}
388
388
$ home = rtrim (getenv ('HOME ' ), '/ ' ) . '/.composer ' ;
389
389
}
@@ -399,7 +399,7 @@ function installComposer($version, $installDir, $filename, $quiet, $disableTls,
399
399
restore_error_handler ();
400
400
401
401
if (!$ write ) {
402
- throw new \ RuntimeException ('Unable to write bundled cacert.pem to: ' .$ target );
402
+ throw new RuntimeException ('Unable to write bundled cacert.pem to: ' .$ target );
403
403
}
404
404
$ cafile = $ target ;
405
405
}
@@ -641,7 +641,7 @@ class HttpClient {
641
641
} elseif ($ cafile ) {
642
642
$ options ['ssl ' ]['cafile ' ] = $ cafile ;
643
643
} else {
644
- throw new \ RuntimeException ('A valid cafile could not be located automatically. ' );
644
+ throw new RuntimeException ('A valid cafile could not be located automatically. ' );
645
645
}
646
646
647
647
/**
@@ -689,7 +689,7 @@ class HttpClient {
689
689
$ proxyURL = str_replace (array ('http:// ' , 'https:// ' ), array ('tcp:// ' , 'ssl:// ' ), $ proxyURL );
690
690
691
691
if (0 === strpos ($ proxyURL , 'ssl: ' ) && !extension_loaded ('openssl ' )) {
692
- throw new \ RuntimeException ('You must enable the openssl extension to use a proxy over https ' );
692
+ throw new RuntimeException ('You must enable the openssl extension to use a proxy over https ' );
693
693
}
694
694
695
695
$ options ['http ' ] = array (
0 commit comments