PHP 8.1.33
Preview: ThrowableUtils.php Size: 895 B
/home/jambtst2015/public_html/ida.com.ng/libraries/vendor/symfony/error-handler/ThrowableUtils.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\ErrorHandler;

use Symfony\Component\ErrorHandler\Exception\SilencedErrorContext;

/**
 * @internal
 */
class ThrowableUtils
{
    /**
     * @param SilencedErrorContext|\Throwable
     */
    public static function getSeverity($throwable): int
    {
        if ($throwable instanceof \ErrorException || $throwable instanceof SilencedErrorContext) {
            return $throwable->getSeverity();
        }

        if ($throwable instanceof \ParseError) {
            return \E_PARSE;
        }

        if ($throwable instanceof \TypeError) {
            return \E_RECOVERABLE_ERROR;
        }

        return \E_ERROR;
    }
}

Directory Contents

Dirs: 5 × Files: 6

Name Size Perms Modified Actions
Error DIR
- drwxr-xr-x 2024-11-22 17:53:12
Edit Download
- drwxr-xr-x 2024-11-22 17:53:12
Edit Download
- drwxr-xr-x 2024-11-22 17:53:12
Edit Download
Exception DIR
- drwxr-xr-x 2024-11-22 17:53:12
Edit Download
Resources DIR
- drwxr-xr-x 2024-11-22 17:53:12
Edit Download
1.99 KB lrw-r--r-- 2024-11-22 17:53:12
Edit Download
1.08 KB lrw-r--r-- 2024-11-22 17:53:12
Edit Download
41.83 KB lrw-r--r-- 2024-11-22 17:53:12
Edit Download
29.17 KB lrw-r--r-- 2024-11-22 17:53:12
Edit Download
1.04 KB lrw-r--r-- 2024-11-22 17:53:12
Edit Download
895 B lrw-r--r-- 2024-11-22 17:53:12
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).