File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,9 @@ private function getMonologExtraData(array $context): array
122122 return $ extraData ;
123123 }
124124
125+ /**
126+ * @param mixed[] $context
127+ */
125128 private function hasExceptionContext (array $ context ): bool
126129 {
127130 return isset ($ context [self ::CONTEXT_EXCEPTION_KEY ]) && $ context [self ::CONTEXT_EXCEPTION_KEY ] instanceof \Throwable;
Original file line number Diff line number Diff line change @@ -269,6 +269,7 @@ public static function handleDataProvider(): iterable
269269 [
270270 'foo ' => 'bar ' ,
271271 'bar ' => 'baz ' ,
272+ 'exception ' => 'just a message ' ,
272273 ],
273274 []
274275 ),
@@ -280,6 +281,7 @@ public static function handleDataProvider(): iterable
280281 'monolog.context ' => [
281282 'foo ' => 'bar ' ,
282283 'bar ' => 'baz ' ,
284+ 'exception ' => 'just a message ' ,
283285 ],
284286 ],
285287 ];
You can’t perform that action at this time.
0 commit comments