Skip to content

Commit b02914b

Browse files
committed
remove unused create var on object creation from string when possible
1 parent 069d5dc commit b02914b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Handler/Logging.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ private function isExists(
9898
} catch (RuntimeException $e) {
9999
// use \Zend\Db\Adapter\Exception\RuntimeException but do here
100100
// to avoid too much deep trace from Zend\Db classes
101-
$exceptionClass = \get_class($e);
102-
throw new $exceptionClass($e->getMessage());
101+
throw new ${!${''} = \get_class($e)}($e->getMessage());
103102
}
104103
}
105104
}

0 commit comments

Comments
 (0)