Unverified Commit 5939e496 authored by Benjamin Morel's avatar Benjamin Morel Committed by Sergei Morozov

One-liner for Configuration::getSQLLogger()

parent 91f6707c
......@@ -39,11 +39,7 @@ class Configuration
*/
public function getSQLLogger() : SQLLogger
{
if (! isset($this->_attributes['sqlLogger'])) {
$this->_attributes['sqlLogger'] = new NullLogger();
}
return $this->_attributes['sqlLogger'];
return $this->_attributes['sqlLogger'] ?? $this->_attributes['sqlLogger'] = new NullLogger();
}
/**
......
Markdown is supported
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