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 @@ -89,7 +89,7 @@ public function __toString(): string
8989 return $ this ->component ->link ($ this ->destination , $ this ->params );
9090
9191 } catch (\Throwable $ e ) {
92- if (func_num_args ()) {
92+ if (func_num_args () || PHP_VERSION_ID >= 70400 ) {
9393 throw $ e ;
9494 }
9595 trigger_error ('Exception in ' . __METHOD__ . "(): {$ e ->getMessage ()} in {$ e ->getFile ()}: {$ e ->getLine ()}" , E_USER_ERROR );
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ public function __toString(): string
6969 try {
7070 return $ this ->latte ->renderToString ($ this ->file , $ this ->params );
7171 } catch (\Throwable $ e ) {
72- if (func_num_args ()) {
72+ if (func_num_args () || PHP_VERSION_ID >= 70400 ) {
7373 throw $ e ;
7474 }
7575 trigger_error ('Exception in ' . __METHOD__ . "(): {$ e ->getMessage ()} in {$ e ->getFile ()}: {$ e ->getLine ()}" , E_USER_ERROR );
You can’t perform that action at this time.
0 commit comments