Skip to content

Commit

Permalink
Merge pull request #270 from Einenlum/fix/null-error-on-logger
Browse files Browse the repository at this point in the history
Fix debug function on null logger
  • Loading branch information
Yann Rabiller authored Sep 21, 2017
2 parents 4f913a4 + 036f6e1 commit 29cbd68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Knp/Snappy/AbstractGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ public function __construct($binary, array $options = [], array $env = null)
{
$this->configure();

$this->logger = new NullLogger();
$this->setBinary($binary);
$this->setOptions($options);
$this->env = empty($env) ? null : $env;
$this->logger = new NullLogger();

register_shutdown_function([$this, 'removeTemporaryFiles']);
}
Expand Down

0 comments on commit 29cbd68

Please # to comment.