From 25726f6cb921ff7e3066f1625816b8e7fbad8d4f Mon Sep 17 00:00:00 2001 From: Brett McBride Date: Sat, 13 Jan 2024 16:51:17 +1100 Subject: [PATCH] fixing deptrac complaints (#1211) --- src/SDK/Common/Exception/StackTraceFormatter.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/SDK/Common/Exception/StackTraceFormatter.php b/src/SDK/Common/Exception/StackTraceFormatter.php index 675fc7626..0d0fa7cb6 100644 --- a/src/SDK/Common/Exception/StackTraceFormatter.php +++ b/src/SDK/Common/Exception/StackTraceFormatter.php @@ -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) { @@ -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 { @@ -124,7 +124,7 @@ private static function writeNewline(string &$s, int $indent = 0): void } /** - * @return Frames + * @psalm-return Frames * * @psalm-suppress PossiblyUndefinedArrayOffset */ @@ -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; }