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

Breaking changes in Guzzle dependency #43

Open
cozumel424 opened this issue Oct 23, 2021 · 0 comments
Open

Breaking changes in Guzzle dependency #43

cozumel424 opened this issue Oct 23, 2021 · 0 comments

Comments

@cozumel424
Copy link

/frostealth/yii2-aws-s3/src/handlers/uploadCommandHandlers

protected function sourceToStream($source): StreamInterface
    {
        if (is_string($source)) {
            $source = Psr7\try_fopen($source, 'r+');
        }

        return Psr7\stream_for($source);
    }

Should now be

protected function sourceToStream($source): StreamInterface
    {
        if (is_string($source)) {
            $source = Psr7\Utils::tryFopen($source, 'r+');
        }

        return Psr7\Utils::streamFor($source);
    }

There might be more functions needs replacing, but that was the one directly affecting me. There's a list of the new functions here https://github.com/guzzle/psr7/blob/4095c77b73893521ef1c84109b95f97aa35e48b8/README.md

niciz added a commit to niciz/yii2-aws-s3 that referenced this issue Nov 5, 2021
guzzle dependency
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

1 participant