We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d4f277 commit b30ac11Copy full SHA for b30ac11
src/Collectors/ExceptionBasicCollector.php
@@ -14,14 +14,20 @@
14
15
class ExceptionBasicCollector extends ExceptionCollector
16
{
17
+ /**
18
+ * @@see https://github.com/symfony/symfony/blob/7.1/src/Symfony/Component/Messenger/Transport/Serialization/Normalizer/FlattenExceptionNormalizer.php
19
+ */
20
public function collect(): array
21
22
return [
- 'class' => \get_class($this->exception),
23
'message' => $this->exception->getMessage(),
24
'code' => $this->exception->getCode(),
25
+ 'class' => \get_class($this->exception),
26
'file' => $this->exception->getFile(),
27
'line' => $this->exception->getLine(),
28
+ 'status_code' => $this->flattenException->getStatusCode(),
29
+ 'status_text' => $this->flattenException->getStatusText(),
30
+ 'headers' => $this->flattenException->getHeaders(),
31
];
32
}
33
0 commit comments