1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Update Throwable::getTrace in stubs

This commit is contained in:
Ciaran McNulty 2022-03-17 16:06:50 +00:00
parent 0b39384325
commit ca185d7f28

View File

@ -45,6 +45,7 @@ interface Throwable
/**
* @psalm-mutation-free
* @return list<array{file:string,line:int,function?:string,class?:string,type?:'::'|'->',args?:array<mixed>}>
*/
public function getTrace() : array;
@ -123,6 +124,7 @@ class Exception implements Throwable
/**
* @psalm-mutation-free
* @return list<array{file:string,line:int,function?:string,class?:string,type?:'::'|'->',args?:array<mixed>}>
*/
public final function getTrace() : array {}
@ -199,6 +201,7 @@ class Error implements Throwable
/**
* @psalm-mutation-free
* @return list<array{file:string,line:int,function?:string,class?:string,type?:'::'|'->',args?:array<mixed>}>
*/
public final function getTrace() : array {}