I'm using Laravel 5.1
with the package laravelcollective/remote
to run an SSH command on a remote server:
\SSH::into('myserver')->run($commands);
But I'm getting the following error message:
Methods with the same name as their class will not be constructors in a future version of PHP; Net_SFTP has a deprecated constructor
I can see that the error is coming from phpseclib
package, and on newer versions they have fixed that. (They changed the function name to __construct
), but I can't update phpseclib
package because I don't include it on my composer.json
file, laravelcollective/remote
does this.
How can I solve this?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire