summaryrefslogtreecommitdiff
path: root/vendor/thecodingmachine/safe/lib/Exceptions/OpensslException.php
blob: 5f424af2dcfabe2e33ef6ac92adffa9afe55e547 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?php


namespace Safe\Exceptions;

class OpensslException extends \Exception implements SafeExceptionInterface
{
    public static function createFromPhpError(): self
    {
        return new self(\openssl_error_string() ?: '', 0);
    }
}