Skip to content

Commit

Permalink
fixing deptrac complaints (#1211)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettmc authored Jan 13, 2024
1 parent 925ae9b commit 25726f6
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 25726f6

Please sign in to comment.