Skip to content

Commit

Permalink
A accidentally, a return
Browse files Browse the repository at this point in the history
  • Loading branch information
enobrev committed Jul 21, 2022
1 parent d8b4a25 commit 35bc806
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public static function setProcessIsError(bool $bIsError): void {
}

public static function getPurpose(): string {
self::$aSpanMetas[self::getCurrentRequestHash()]->getName();
return self::$aSpanMetas[self::getCurrentRequestHash()]->getName();
}

/**
Expand Down
3 changes: 1 addition & 2 deletions src/SpanMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class SpanMeta {
// const VERSION = 1: included tags, which were not used
private const VERSION = 2;

private string $sName;
private string $sName = '';

private bool $bMetrics;

Expand All @@ -28,7 +28,6 @@ class SpanMeta {
public Timer $Timer;

public function __construct(DateTime $oStart, $sMetrics = self::METRICS_OFF) {
$this->sName = '';
$this->bMetrics = $sMetrics === self::METRICS_ON;
$this->oStart = $oStart;
$this->bError = false;
Expand Down

0 comments on commit 35bc806

Please sign in to comment.