mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-24 10:06:08 +02:00
Use never return typehint (#1654)
The `never` return typehint was added in PHP 8.1 and can be used to indicate that a function will never return. RFC: https://wiki.php.net/rfc/noreturn_type
This commit is contained in:
@@ -175,10 +175,7 @@ class ErrorHandler
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @phpstan-return never
|
||||
*/
|
||||
private function handleException(\Throwable $e): void
|
||||
private function handleException(\Throwable $e): never
|
||||
{
|
||||
$level = LogLevel::ERROR;
|
||||
foreach ($this->uncaughtExceptionLevelMap as $class => $candidate) {
|
||||
|
||||
Reference in New Issue
Block a user