diff --git a/src/Psl/Type/Exception/TypeTrace.php b/src/Psl/Type/Exception/TypeTrace.php index de4cd60..d5bc4d7 100644 --- a/src/Psl/Type/Exception/TypeTrace.php +++ b/src/Psl/Type/Exception/TypeTrace.php @@ -4,10 +4,13 @@ declare(strict_types=1); namespace Psl\Type\Exception; +/** + * @psalm-immutable + */ final class TypeTrace { /** - * @var string[] + * @psalm-var list $frames */ private array $frames = []; @@ -20,7 +23,7 @@ final class TypeTrace } /** - * @return string[] + * @psalm-return list */ public function getFrames(): array {