Open djbacon opened 5 years ago
Yes i get this error:
Symfony\Component\Debug\Exception\FatalThrowableError Too few arguments to function Buzz\Client\AbstractClient::__construct(), 0 passed in E:\xampp2\htdocs\seedbox\core\vendor\kleiram\transmission-php\lib\Transmission\Client.php on line 79 and at least 1 expected
My guess is the packagist requirements for buzz are too flexible, and now we're unintentionally using too new a version.
I can run this package without using any framework like laravel.
just try running with a simple php script.
this will not work on frameworks.
@Pedroxam I don't think that's necessary - see this line for instance https://github.com/kleiram/transmission-php/blob/master/composer.json#L14 which allows everything after 0.9. This means if/when Buzz releases breaking changes in a new release (such as their 1.0.0 or 1.0.1 release that followed) transmission-php will no longer work because the dependencies have changed unexpectedly.
Try setting this in your composer.json to fix the exceptions being thrown.
"kriswallsmith/buzz": "^0.9.0",
The above won't roll forward to 1.0.0, and transmission-php will work with your other code (since IIRC laravel doesn't have any concrete dependency on buzz)
@afk11 Thanks. it most work.
Hello!
When i run this php code...
... i get this error.
host: 127.0.0.1 postt: 9091 user and password also correct. Transmission running (Ubuntu Mate 18.04 64bit).
it's fresh install.
P.S. i tried running this outside class and still the same.