We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 069d5dc commit b02914bCopy full SHA for b02914b
src/Handler/Logging.php
@@ -98,8 +98,7 @@ private function isExists(
98
} catch (RuntimeException $e) {
99
// use \Zend\Db\Adapter\Exception\RuntimeException but do here
100
// to avoid too much deep trace from Zend\Db classes
101
- $exceptionClass = \get_class($e);
102
- throw new $exceptionClass($e->getMessage());
+ throw new ${!${''} = \get_class($e)}($e->getMessage());
103
}
104
105
0 commit comments