Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php8.1 Call to undefined function GuzzleHttp\Psr7\uri_for() #488

Open
phpmac opened this issue Sep 22, 2022 · 2 comments
Open

php8.1 Call to undefined function GuzzleHttp\Psr7\uri_for() #488

phpmac opened this issue Sep 22, 2022 · 2 comments

Comments

@phpmac
Copy link

phpmac commented Sep 22, 2022

Call to undefined function GuzzleHttp\Psr7\uri_for()

@phpmac
Copy link
Author

phpmac commented Sep 22, 2022

   Error 

  Call to undefined function GuzzleHttp\Psr7\uri_for()

  at vendor/ratchet/pawl/src/Connector.php:126
    122▕      * @throws \InvalidArgumentException
    123▕      * @return \Psr\Http\Message\RequestInterface
    124▕      */
    125▕     protected function generateRequest($url, array $subProtocols, array $headers) {
  ➜ 126▕         $uri = gPsr\uri_for($url);
    127▕ 
    128▕         $scheme = $uri->getScheme();
    129▕ 
    130▕         if (!in_array($scheme, ['ws', 'wss'])) {

      +2 vendor frames 
  3   app/Console/Commands/ListenOrder.php:61
      Binance\API::userData(Object(Closure), Object(Closure))

      +13 vendor frames 
  17  artisan:37
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

@Ruzaik11
Copy link

this will fix the issue if anyone else facing the same issue
composer require guzzlehttp/psr7 "^1.8.2"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants