Skip to content

Commit 8528f8c

Browse files
dbclkhlazka
andauthored
The inspect_all function has been changed to Utils::inspectAll. (#178)
* Update CacheMiddleware.php The inspect_all function has been replaced with a Utils::inspect_all function due to "mitigate problems with functions conflicting between global and local copies of the package". * Update CacheMiddleware.php The name of the new function is inspectAll and not inspect_all... * Update composer.json * Update composer.json Make promises accept both version 1.4 or 2.0. Co-authored-by: Christoph Reiter <reiter.christoph@gmail.com> --------- Co-authored-by: Christoph Reiter <reiter.christoph@gmail.com>
1 parent 24b93ed commit 8528f8c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"require": {
1616
"php": ">=7.2.0",
1717
"guzzlehttp/guzzle": "^6.0 || ^7.0",
18+
"guzzlehttp/promises": "^1.4 || ^2.0",
1819
"guzzlehttp/psr7": "^1.7.0 || ^2.0.0"
1920
},
2021
"require-dev": {

src/CacheMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function getHttpMethods()
110110
*/
111111
public function purgeReValidation()
112112
{
113-
\GuzzleHttp\Promise\inspect_all($this->waitingRevalidate);
113+
\GuzzleHttp\Promise\Utils::inspectAll($this->waitingRevalidate);
114114
}
115115

116116
/**

0 commit comments

Comments
 (0)