Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing deptrac complaints #1211

Merged
merged 1 commit into from
Jan 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading