Skip to content

Bug: Call to undefined function GuzzleHttp\\Psr7\\uri_for()  #138

Closed
@abonne01

Description

@abonne01

PHP version: 7.4.3

Description
After update of GuzzleHttp lib (via composer) , I had this issue:

PHP Fatal error:  Uncaught Error: Call to undefined function GuzzleHttp\\Psr7\\uri_for() 
php-http/message/src/UriFactory/GuzzleUriFactory.php

How to reproduce
Since upgrade (in my case) v2.1.7 dependency lib GuzzleHttp\Psr7 to v2.1.7

Possible Solution
it seems coming from deprecated use of function :
php-http\message\src\UriFactory\GuzzleUriFactory.php

original
return Psr7\uri_for($uri);

correction :
return Psr7\Utils::uriFor($uri);

I only fast edit this fix. I didn't check all deprecated functions used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions