first commit
This commit is contained in:
12
pma/vendor/thecodingmachine/safe/lib/Exceptions/OpensslException.php
vendored
Normal file
12
pma/vendor/thecodingmachine/safe/lib/Exceptions/OpensslException.php
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Safe\Exceptions;
|
||||
|
||||
class OpensslException extends \Exception implements SafeExceptionInterface
|
||||
{
|
||||
public static function createFromPhpError(): self
|
||||
{
|
||||
return new self(\openssl_error_string() ?: '', 0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user