Skip to content

Commit

Permalink
log to Logger
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-diudiun committed Jul 12, 2022
1 parent 8938691 commit 1c0af36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Log.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
//TODO: push

declare(strict_types=1);

namespace Memcrab\Log;
Expand All @@ -19,7 +19,7 @@ class Log extends Logger

public static function obj(): self
{
if (!isset(self::$instance) || !(self::$instance instanceof Log)) {
if (!isset(self::$instance) || !(self::$instance instanceof Logger)) {
self::$instance = new self('log');

\register_shutdown_function("\Memcrab\Log\Log::shutdown");
Expand Down

0 comments on commit 1c0af36

Please sign in to comment.