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 efb8dff commit 6488a62Copy full SHA for 6488a62
src/Symfony/Component/Serializer/InvariantViolation.php
@@ -17,7 +17,7 @@ class InvariantViolation
17
private $message;
18
private $exception;
19
20
- public function __construct($normalizedValue, string $message, ?\Throwable $exception = null)
+ public function __construct($normalizedValue, string $message, \Throwable $exception)
21
{
22
$this->normalizedValue = $normalizedValue;
23
$this->message = $message;
@@ -34,7 +34,7 @@ public function getMessage(): string
34
return $this->message;
35
}
36
37
- public function getException(): ?\Throwable
+ public function getException(): \Throwable
38
39
return $this->exception;
40
0 commit comments