projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1769398
)
WIP: Try and fix installing on d9
author
Seamus Lee
<seamuslee001@gmail.com>
Sat, 30 Jul 2022 22:56:22 +0000
(22:56 +0000)
committer
Seamus Lee
<seamuslee001@gmail.com>
Sat, 30 Jul 2022 22:57:55 +0000
(22:57 +0000)
guzzle_php81_shim.php
patch
|
blob
|
blame
|
history
diff --git
a/guzzle_php81_shim.php
b/guzzle_php81_shim.php
index 1c2eae37d3621e430bc05f3475dde4657ebe0821..5ae49d744467b57c858492663aee3ce143cd1e4e 100644
(file)
--- a/
guzzle_php81_shim.php
+++ b/
guzzle_php81_shim.php
@@
-2,7
+2,15
@@
namespace GuzzleHttp;
-if (!function_exists('\GuzzleHttp\http_build_query')) {
+try {
+ \Composer\InstalledVersions::getVersion('drupal/core');
+ $drupalCoreInstalled = TRUE;
+}
+catch (\OutOfBoundsException $e) {
+ $drupalCoreInstalled = FALSE;
+}
+
+if (!$drupalCoreInstalled) {
/**
* Generates URL-encoded query string.