Skip to content

Commit 77965cf

Browse files
committed
Fix remaining constraint array-options syntax in Layout and Page entities
1 parent f132622 commit 77965cf

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/Entity/Core/Layout.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ public function __construct()
6565

6666
public static function loadValidatorMetadata(ClassMetadata $metadata): void
6767
{
68-
$metadata->addPropertyConstraint('uiComponent', new Assert\NotBlank([
69-
'message' => 'You must define the uiComponent for this resource.',
70-
]));
68+
$metadata->addPropertyConstraint('uiComponent', new Assert\NotBlank(
69+
message: 'You must define the uiComponent for this resource.',
70+
));
7171
}
7272
}

src/Entity/Core/Page.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ public function __construct()
6767

6868
public static function loadValidatorMetadata(ClassMetadata $metadata): void
6969
{
70-
$metadata->addPropertyConstraint('uiComponent', new Assert\NotBlank([
71-
'message' => 'Please specify a UI component.',
72-
]));
70+
$metadata->addPropertyConstraint('uiComponent', new Assert\NotBlank(
71+
message: 'Please specify a UI component.',
72+
));
7373
}
7474
}

0 commit comments

Comments
 (0)