After upgrading Magento to version 2.4.6 with Guzzle 7.8.0, the following line contains an undefined function.
main.CRITICAL: Error: Call to undefined function GuzzleHttp\Promise\unwrap() in /vendor/theiconic/php-ga-measurement-protocol/src/Network/HttpClient.php:51
public function __destruct()
{
Promise\Utils::unwrap(self::$promises);
}
To solve that it needs to be changed to the next one:
public function __destruct()
{
Promise\Utils::unwrap(self::$promises);
}
After upgrading Magento to version 2.4.6 with Guzzle 7.8.0, the following line contains an undefined function.
main.CRITICAL: Error: Call to undefined function GuzzleHttp\Promise\unwrap() in /vendor/theiconic/php-ga-measurement-protocol/src/Network/HttpClient.php:51
To solve that it needs to be changed to the next one: