Skip to content

Commit

Permalink
The inspect_all function has been changed to Utils::inspectAll. (#178)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

---------

Co-authored-by: Christoph Reiter <[email protected]>
  • Loading branch information
dbclkh and lazka committed May 26, 2023
1 parent 24b93ed commit 8528f8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"require": {
"php": ">=7.2.0",
"guzzlehttp/guzzle": "^6.0 || ^7.0",
"guzzlehttp/promises": "^1.4 || ^2.0",
"guzzlehttp/psr7": "^1.7.0 || ^2.0.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/CacheMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function getHttpMethods()
*/
public function purgeReValidation()
{
\GuzzleHttp\Promise\inspect_all($this->waitingRevalidate);
\GuzzleHttp\Promise\Utils::inspectAll($this->waitingRevalidate);
}

/**
Expand Down

0 comments on commit 8528f8c

Please sign in to comment.