From ffabdd8dfbe4601733371339846856183466a3bf Mon Sep 17 00:00:00 2001 From: Vladimir Morozov Date: Thu, 15 Dec 2022 08:48:31 +0200 Subject: [PATCH] fixed most of phpstan errors --- src/Logs/FluentLogManager.php | 3 ++- src/Tracing/ParsedTraceParentHeaderValue.php | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Logs/FluentLogManager.php b/src/Logs/FluentLogManager.php index f2ee2b9..31587eb 100644 --- a/src/Logs/FluentLogManager.php +++ b/src/Logs/FluentLogManager.php @@ -5,6 +5,7 @@ use Fluent\Logger\PackerInterface; use Illuminate\Contracts\Container\BindingResolutionException; use Illuminate\Contracts\Container\Container; +use Illuminate\Contracts\Foundation\Application; use Illuminate\Log\LogManager; use Monolog\Handler\HandlerInterface; use Monolog\Logger as Monolog; @@ -20,7 +21,7 @@ */ final class FluentLogManager extends LogManager { - /** @var Container */ + /** @var Application */ protected $app; /** diff --git a/src/Tracing/ParsedTraceParentHeaderValue.php b/src/Tracing/ParsedTraceParentHeaderValue.php index 0cf722e..f5aca28 100644 --- a/src/Tracing/ParsedTraceParentHeaderValue.php +++ b/src/Tracing/ParsedTraceParentHeaderValue.php @@ -15,22 +15,22 @@ public static function make(string $headerValue): ?self return null; } - return new self($version, $traceId, $spanId, $flags); + return new self($traceId, $spanId); } public function __construct( - private string $version, private string $traceId, private string $spanId, - private string $flags, ) { } - /** - * @return string - */ public function getTraceId(): string { return $this->traceId; } + + public function getSpanId(): string + { + return $this->spanId; + } }