mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-12-03 10:08:33 +01:00
[Type] immutable type trace
This commit is contained in:
parent
fb329d2b99
commit
1aad753ca2
@ -4,10 +4,13 @@ declare(strict_types=1);
|
||||
|
||||
namespace Psl\Type\Exception;
|
||||
|
||||
/**
|
||||
* @psalm-immutable
|
||||
*/
|
||||
final class TypeTrace
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
* @psalm-var list<string> $frames
|
||||
*/
|
||||
private array $frames = [];
|
||||
|
||||
@ -20,7 +23,7 @@ final class TypeTrace
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string[]
|
||||
* @psalm-return list<string>
|
||||
*/
|
||||
public function getFrames(): array
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user