mirror of
https://github.com/guzzle/guzzle.git
synced 2025-02-12 03:24:26 +01:00
safe check uri_template extension, fix issue #1063
This commit is contained in:
parent
1daf7690c3
commit
59ed113efd
@ -16,7 +16,7 @@ use GuzzleHttp\Handler\StreamHandler;
|
||||
*/
|
||||
function uri_template($template, array $variables)
|
||||
{
|
||||
if (function_exists('\\uri_template')) {
|
||||
if (extension_loaded('uri_template')) {
|
||||
// @codeCoverageIgnoreStart
|
||||
return \uri_template($template, $variables);
|
||||
// @codeCoverageIgnoreEnd
|
||||
|
Loading…
x
Reference in New Issue
Block a user