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 aa55a17 commit 0482551Copy full SHA for 0482551
src/ConstraintViolationException.php
@@ -46,12 +46,12 @@ public function getExtensions(): array
46
{
47
$extensions = [];
48
$code = $this->violation->getCode();
49
- if ($code !== null) {
+ if (! empty($code)) {
50
$extensions['code'] = $code;
51
}
52
53
$propertyPath = $this->violation->getPropertyPath();
54
- if ($propertyPath !== null) {
+ if (! empty($propertyPath)) {
55
$extensions['field'] = $propertyPath;
56
57
0 commit comments