File Manager Lite
Dir:
/home/u540325668/domains/mkjsindia.org/public_html_old/vendor/symfony/error-handler
Upload
[..]
.gitattributes (79 B)
Edit
Rename
Del
BufferingLogger.php (1.72 KB)
Edit
Rename
Del
CHANGELOG.md (149 B)
Edit
Rename
Del
Error/
Rename
Del
ErrorEnhancer/
Rename
Del
ErrorRenderer/
Rename
Del
Exception/
Rename
Del
LICENSE (1.04 KB)
Edit
Rename
Del
README.md (440 B)
Edit
Rename
Del
Resources/
Rename
Del
ThrowableUtils.php (727 B)
Edit
Rename
Del
composer.json (990 B)
Edit
Rename
Del
Edit: 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; /** * @internal */ class ThrowableUtils { public static function getSeverity(\Throwable $throwable): int { if ($throwable instanceof \ErrorException) { return $throwable->getSeverity(); } if ($throwable instanceof \ParseError) { return E_PARSE; } if ($throwable instanceof \TypeError) { return E_RECOVERABLE_ERROR; } return E_ERROR; } }
Simpan