Skip to content

Commit

Permalink
fixed most of phpstan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
freezer278 committed Dec 15, 2022
1 parent b0c81b1 commit ffabdd8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/Logs/FluentLogManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -20,7 +21,7 @@
*/
final class FluentLogManager extends LogManager
{
/** @var Container */
/** @var Application */
protected $app;

/**
Expand Down
12 changes: 6 additions & 6 deletions src/Tracing/ParsedTraceParentHeaderValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit ffabdd8

Please sign in to comment.