Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function __construct(string $message = 'Generic OpenSSL exception') |
||
20 | { |
||
21 | $stack = []; |
||
22 | while (($msg = openssl_error_string()) !== false) { |
||
23 | $stack[] = $msg; |
||
24 | } |
||
25 | |||
26 | foreach ($stack as $line) { |
||
27 | $message .= '; ' . $line; |
||
28 | } |
||
29 | $message .= '.'; |
||
30 | |||
31 | parent::__construct($message); |
||
32 | } |
||
34 |