Skip to content

Commit

Permalink
Update Throwable::getTrace in stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
ciaranmcnulty committed Mar 18, 2022
1 parent 0b39384 commit ca185d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stubs/CoreImmutableClasses.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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 {}

Expand Down Expand Up @@ -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 {}

Expand Down

0 comments on commit ca185d7

Please sign in to comment.