fix wrong return type of LoggerHandler::getInstance
This commit is contained in:
parent
3932246fbd
commit
0d589f3878
@ -20,10 +20,14 @@ use Psr\Log\NullLogger;
|
||||
|
||||
class LoggerHandler
|
||||
{
|
||||
/** @var LoggerHandler */
|
||||
private static $instance = null;
|
||||
private $logger;
|
||||
|
||||
public static function getInstance(): ?LoggerHandler
|
||||
/**
|
||||
* @return LoggerHandler
|
||||
*/
|
||||
public static function getInstance(): LoggerHandler
|
||||
{
|
||||
if (self::$instance === null) {
|
||||
self::$instance = new self();
|
||||
|
Loading…
x
Reference in New Issue
Block a user