fix wrong return type of LoggerHandler::getInstance

This commit is contained in:
Daniel Seifert 2022-07-28 10:07:37 +02:00
parent 3932246fbd
commit 0d589f3878
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F
1 changed files with 5 additions and 1 deletions

View File

@ -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();