File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ public function __toString(): string
8686 try {
8787 return $ this ->value = ($ this ->value )();
8888 } catch (\Throwable $ e ) {
89- if (\TypeError::class === \get_class ( $ e ) && __FILE__ === $ e ->getFile ()) {
89+ if (\TypeError::class === $ e ::class && __FILE__ === $ e ->getFile ()) {
9090 $ type = explode (', ' , $ e ->getMessage ());
9191 $ type = substr (array_pop ($ type ), 0 , -\strlen (' returned ' ));
9292 $ r = new \ReflectionFunction ($ this ->value );
Original file line number Diff line number Diff line change 2828 echo "Caused by \n" ;
2929 }
3030
31- echo get_class ( $ cause) .': ' .$ cause ->getMessage ()."\n" ;
31+ echo $ cause::class .': ' .$ cause ->getMessage ()."\n" ;
3232 echo "\n" ;
3333 echo $ cause ->getFile ().': ' .$ cause ->getLine ()."\n" ;
3434 echo $ cause ->getTraceAsString ()."\n" ;
You can’t perform that action at this time.
0 commit comments