b0y-101 Mini Shell


Current Path : E:/phpMyAdmin/vendor/thecodingmachine/safe/generated/Exceptions/
File Upload :
Current File : E:/phpMyAdmin/vendor/thecodingmachine/safe/generated/Exceptions/YazException.php

<?php
namespace Safe\Exceptions;

class YazException 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);
    }
}

Copyright © 2019 by b0y-101