8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffb0d2d commit 6c44c5fCopy full SHA for 6c44c5f
src/Symfony/Component/ErrorHandler/ThrowableUtils.php
@@ -11,14 +11,19 @@
11
12
namespace Symfony\Component\ErrorHandler;
13
14
+use Symfony\Component\ErrorHandler\Exception\SilencedErrorContext;
15
+
16
/**
17
* @internal
18
*/
19
class ThrowableUtils
20
{
- public static function getSeverity(\Throwable $throwable): int
21
+ /**
22
+ * @param SilencedErrorContext|\Throwable
23
+ */
24
+ public static function getSeverity($throwable): int
25
- if ($throwable instanceof \ErrorException) {
26
+ if ($throwable instanceof \ErrorException || $throwable instanceof SilencedErrorContext) {
27
return $throwable->getSeverity();
28
}
29
0 commit comments