first commit
This commit is contained in:
11
pma/vendor/thecodingmachine/safe/generated/Exceptions/HashException.php
vendored
Normal file
11
pma/vendor/thecodingmachine/safe/generated/Exceptions/HashException.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
namespace Safe\Exceptions;
|
||||
|
||||
class HashException extends \ErrorException implements SafeExceptionInterface
|
||||
{
|
||||
public static function createFromPhpError(): self
|
||||
{
|
||||
$error = error_get_last();
|
||||
return new self($error['message'] ?? 'An error occured', 0, $error['type'] ?? 1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user