laipower/wp-content/upgrade-temp-backup/plugins/wp-webauthn/wp-webauthn-vendor/thecodingmachine/safe/generated/Exceptions/XdiffException.php
2024-10-09 12:44:46 +00:00

12 lines
308 B
PHP

<?php
namespace Safe\Exceptions;
class XdiffException 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);
}
}