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
[3.x] Breaking change on FtpAdapter
#1414
Comments
@nunomaduro what is the BC break in your opinion? |
In fact there are 2 breaking changes:
|
PR welcome 👍 |
Fixed in 3.0.3 |
Bug Report
Summary
The commit thephpleague/flysystem-ftp@813bc06 introduces a breaking change where the
FtpAdapter::__construct
on the line$this->rootDirectory = $this->resolveConnectionRoot($this->connection());
is trying to resolve the given connection.Usually, I would expect the adapter only to try to resolve the connection on methods such as
read
,readStream
, etc, and not while trying to instantiate theFtpAdapter
class.How to reproduce
Try to create new instance of
FtpAdapter
with an invalid connection.The text was updated successfully, but these errors were encountered: