Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit ffabdd8

Browse files
committed
fixed most of phpstan errors
1 parent b0c81b1 commit ffabdd8

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/Logs/FluentLogManager.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Fluent\Logger\PackerInterface;
66
use Illuminate\Contracts\Container\BindingResolutionException;
77
use Illuminate\Contracts\Container\Container;
8+
use Illuminate\Contracts\Foundation\Application;
89
use Illuminate\Log\LogManager;
910
use Monolog\Handler\HandlerInterface;
1011
use Monolog\Logger as Monolog;
@@ -20,7 +21,7 @@
2021
*/
2122
final class FluentLogManager extends LogManager
2223
{
23-
/** @var Container */
24+
/** @var Application */
2425
protected $app;
2526

2627
/**

src/Tracing/ParsedTraceParentHeaderValue.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ public static function make(string $headerValue): ?self
1515
return null;
1616
}
1717

18-
return new self($version, $traceId, $spanId, $flags);
18+
return new self($traceId, $spanId);
1919
}
2020

2121
public function __construct(
22-
private string $version,
2322
private string $traceId,
2423
private string $spanId,
25-
private string $flags,
2624
) {
2725
}
2826

29-
/**
30-
* @return string
31-
*/
3227
public function getTraceId(): string
3328
{
3429
return $this->traceId;
3530
}
31+
32+
public function getSpanId(): string
33+
{
34+
return $this->spanId;
35+
}
3636
}

0 commit comments

Comments
 (0)