OpensslException.php 241 B

123456789101112
  1. <?php
  2. namespace Safe\Exceptions;
  3. class OpensslException extends \Exception implements SafeExceptionInterface
  4. {
  5. public static function createFromPhpError(): self
  6. {
  7. return new self(\openssl_error_string() ?: '', 0);
  8. }
  9. }