You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Alchemy/Binarydriver through PHP-FFMPeg.
When no logger is set through the configuration, the typehint in Alchemy\BinaryDriver\AbstractBinary::__construct() fails.
Catchable fatal error: Argument 2 passed to Alchemy\BinaryDriver\AbstractBinary::__construct() must be an instance of Psr\Log\LoggerInterface, instance of Monolog\Logger given, called in /vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/AbstractBinary.php on line 171 and defined in /vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/AbstractBinary.php on line 39
in AbstractBinary::load, $logger is null.
This leads to: this line being called: $logger = new Logger(__NAMESPACE__ . ' logger');
__NAMESPACE__ is:
string 'Alchemy\BinaryDriver' (length=20)
Logger is referenced as: use Monolog\Logger;
in Line 19.
This leads to $logger being the following at the end of the call to AbstractBinary::load:
I am using Alchemy/Binarydriver through PHP-FFMPeg.
When no logger is set through the configuration, the typehint in Alchemy\BinaryDriver\AbstractBinary::__construct() fails.
in AbstractBinary::load, $logger is null.
This leads to: this line being called:
$logger = new Logger(__NAMESPACE__ . ' logger');
__NAMESPACE__
is:string 'Alchemy\BinaryDriver' (length=20)
Logger is referenced as:
use Monolog\Logger;
in Line 19.
This leads to $logger being the following at the end of the call to AbstractBinary::load:
Monolog/Logger Version is: "dev-master": "1.13.x-dev"
This is installed through composer requirements following from php-ffmpeg.
Monolog\Logger correctly implements Loggerinterface though.
class Logger implements LoggerInterface
Is this a PHP bug?
My PHP Version is 5.6.2 on OSX.
The text was updated successfully, but these errors were encountered: