Skip to content
Snippets Groups Projects
Commit 18f0e43d authored by Demian Katz's avatar Demian Katz
Browse files

Fixed deprecation warning.

parent bbdc075c
Branches
Tags
No related merge requests found
......@@ -128,9 +128,9 @@ class Logger extends BaseLogger implements ServiceLocatorAwareInterface
$this->addWriters($writer, $filters);
}
// Null writer to avoid errors
// Null (no-op) writer to avoid errors
if (count($this->writers) == 0) {
$nullWriter = 'Zend\Log\Writer\Null';
$nullWriter = 'Zend\Log\Writer\Noop';
$this->addWriter(new $nullWriter());
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment