File tree Expand file tree Collapse file tree 6 files changed +18
-0
lines changed Expand file tree Collapse file tree 6 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,9 @@ public function __toString(): string
89
89
try {
90
90
return (new Printer )->printClass ($ this , $ this ->namespace );
91
91
} catch (\Throwable $ e ) {
92
+ if (PHP_VERSION_ID >= 70400 ) {
93
+ throw $ e ;
94
+ }
92
95
trigger_error ('Exception in ' . __METHOD__ . "(): {$ e ->getMessage ()} in {$ e ->getFile ()}: {$ e ->getLine ()}" , E_USER_ERROR );
93
96
}
94
97
}
Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ public function __toString(): string
40
40
try {
41
41
return (new Printer )->printClosure ($ this );
42
42
} catch (\Throwable $ e ) {
43
+ if (PHP_VERSION_ID >= 70400 ) {
44
+ throw $ e ;
45
+ }
43
46
trigger_error ('Exception in ' . __METHOD__ . "(): {$ e ->getMessage ()} in {$ e ->getFile ()}: {$ e ->getLine ()}" , E_USER_ERROR );
44
47
}
45
48
}
Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ public function __toString(): string
38
38
try {
39
39
return (new Printer )->printFunction ($ this );
40
40
} catch (\Throwable $ e ) {
41
+ if (PHP_VERSION_ID >= 70400 ) {
42
+ throw $ e ;
43
+ }
41
44
trigger_error ('Exception in ' . __METHOD__ . "(): {$ e ->getMessage ()} in {$ e ->getFile ()}: {$ e ->getLine ()}" , E_USER_ERROR );
42
45
}
43
46
}
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ public function __toString(): string
53
53
try {
54
54
return (new Printer )->printMethod ($ this );
55
55
} catch (\Throwable $ e ) {
56
+ if (PHP_VERSION_ID >= 70400 ) {
57
+ throw $ e ;
58
+ }
56
59
trigger_error ('Exception in ' . __METHOD__ . "(): {$ e ->getMessage ()} in {$ e ->getFile ()}: {$ e ->getLine ()}" , E_USER_ERROR );
57
60
}
58
61
}
Original file line number Diff line number Diff line change @@ -109,6 +109,9 @@ public function __toString(): string
109
109
try {
110
110
return (new Printer )->printFile ($ this );
111
111
} catch (\Throwable $ e ) {
112
+ if (PHP_VERSION_ID >= 70400 ) {
113
+ throw $ e ;
114
+ }
112
115
trigger_error ('Exception in ' . __METHOD__ . "(): {$ e ->getMessage ()} in {$ e ->getFile ()}: {$ e ->getLine ()}" , E_USER_ERROR );
113
116
}
114
117
}
Original file line number Diff line number Diff line change @@ -193,6 +193,9 @@ public function __toString(): string
193
193
try {
194
194
return (new Printer )->printNamespace ($ this );
195
195
} catch (\Throwable $ e ) {
196
+ if (PHP_VERSION_ID >= 70400 ) {
197
+ throw $ e ;
198
+ }
196
199
trigger_error ('Exception in ' . __METHOD__ . "(): {$ e ->getMessage ()} in {$ e ->getFile ()}: {$ e ->getLine ()}" , E_USER_ERROR );
197
200
}
198
201
}
You can’t perform that action at this time.
0 commit comments