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

Commit6c44c5f

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

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎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