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
86
86
try {
87
87
return $ this ->value = ($ this ->value )();
88
88
} catch (\Throwable $ e ) {
89
- if (\TypeError::class === \get_class ( $ e ) && __FILE__ === $ e ->getFile ()) {
89
+ if (\TypeError::class === $ e ::class && __FILE__ === $ e ->getFile ()) {
90
90
$ type = explode (', ' , $ e ->getMessage ());
91
91
$ type = substr (array_pop ($ type ), 0 , -\strlen (' returned ' ));
92
92
$ r = new \ReflectionFunction ($ this ->value );
Original file line number Diff line number Diff line change 28
28
echo "Caused by \n" ;
29
29
}
30
30
31
- echo get_class ( $ cause) .': ' .$ cause ->getMessage ()."\n" ;
31
+ echo $ cause::class .': ' .$ cause ->getMessage ()."\n" ;
32
32
echo "\n" ;
33
33
echo $ cause ->getFile ().': ' .$ cause ->getLine ()."\n" ;
34
34
echo $ cause ->getTraceAsString ()."\n" ;
You can’t perform that action at this time.
0 commit comments