Skip to content
Permalink
Browse files

throwing exceptions from __toString() is allowed since PHP 7.4

  • Loading branch information...
dg committed Oct 8, 2019
1 parent cacc110 commit 671c233ed2200006f37319a2feb89f4277a6e76a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Database/Table/ActiveRow.php
@@ -58,7 +58,7 @@ public function __toString()
try {
return (string) $this->getPrimary();
} catch (\Throwable $e) {
if (func_num_args()) {
if (func_num_args() || PHP_VERSION_ID >= 70400) {
throw $e;
}
trigger_error('Exception in ' . __METHOD__ . "(): {$e->getMessage()} in {$e->getFile()}:{$e->getLine()}", E_USER_ERROR);

0 comments on commit 671c233

Please sign in to comment.
You can’t perform that action at this time.