Skip to content

Commit

Permalink
fixing deptrac complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
brettmc committed Jan 12, 2024
1 parent a196c13 commit 4fdbb92
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/SDK/Common/Exception/StackTraceFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function format(Throwable $e): string
$s = '';
$seen = [];

/** @var Frames|null $enclosing */
/** @psalm-var Frames|null $enclosing */
$enclosing = null;
do {
if ($enclosing) {
Expand Down Expand Up @@ -68,9 +68,9 @@ public static function format(Throwable $e): string

/**
* @phan-suppress-next-line PhanTypeMismatchDeclaredParam
* @param Frames $frames
* @psalm-param Frames $frames
* @phan-suppress-next-line PhanTypeMismatchDeclaredParam
* @param Frames|null $enclosing
* @psalm-param Frames|null $enclosing
*/
private static function writeFrames(string &$s, array $frames, ?array $enclosing): void
{
Expand Down Expand Up @@ -124,7 +124,7 @@ private static function writeNewline(string &$s, int $indent = 0): void
}

/**
* @return Frames
* @psalm-return Frames
*
* @psalm-suppress PossiblyUndefinedArrayOffset
*/
Expand All @@ -144,7 +144,7 @@ private static function frames(Throwable $e): array
$frames[0]['file'] = $e->getFile();
$frames[0]['line'] = $e->getLine();

/** @var Frames $frames */
/** @psalm-var Frames $frames */
return $frames;
}

Expand Down

0 comments on commit 4fdbb92

Please sign in to comment.