Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit92132b9

Browse files
[ErrorHandler] fix handling buffered SilencedErrorContext
1 parentffb0d2d commit92132b9

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

‎src/Symfony/Component/ErrorHandler/Resources/views/logs.html.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
$status ='warning';
1818
}else {
1919
$severity =0;
20-
if (($exception =$log['context']['exception'] ??null)instanceof \ErrorException) {
20+
if (($exception =$log['context']['exception'] ??null)instanceof \ErrorException ||$exceptioninstanceof \Symfony\Component\Errorhandler\Exception\SilencedErrorContext) {
2121
$severity =$exception->getSeverity();
2222
}
2323
$status = \E_DEPRECATED ===$severity || \E_USER_DEPRECATED ===$severity ?'warning' :'normal';

‎src/Symfony/Component/ErrorHandler/ThrowableUtils.php‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,19 @@
1111

1212
namespaceSymfony\Component\ErrorHandler;
1313

14+
useSymfony\Component\ErrorHandler\Exception\SilencedErrorContext;
15+
1416
/**
1517
* @internal
1618
*/
1719
class ThrowableUtils
1820
{
19-
publicstaticfunctiongetSeverity(\Throwable$throwable):int
21+
/**
22+
* @param SilencedErrorContext|\Throwable
23+
*/
24+
publicstaticfunctiongetSeverity($throwable):int
2025
{
21-
if ($throwableinstanceof \ErrorException) {
26+
if ($throwableinstanceof \ErrorException ||$throwableinstanceof SilencedErrorContext) {
2227
return$throwable->getSeverity();
2328
}
2429

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp