File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed
Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1212use Ibexa \DesignSystemTwig \Twig \Components \ListFieldTrait ;
1313use Symfony \Component \OptionsResolver \OptionsResolver ;
1414use Symfony \UX \TwigComponent \Attribute \AsTwigComponent ;
15- use Symfony \UX \TwigComponent \Attribute \ExposeInTemplate ;
1615
1716/**
1817 * @phpstan-type CheckboxItem array{
@@ -39,7 +38,7 @@ protected function modifyListItem(array $item): array
3938 protected function configurePropsResolver (OptionsResolver $ resolver ): void
4039 {
4140 $ this ->validateListFieldProps ($ resolver );
42-
41+
4342 // TODO: check if items are valid according to Checkbox/Field component
4443
4544 $ resolver ->setDefaults (['value ' => []]);
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ trait ListFieldTrait
2525 #[ExposeInTemplate(name: 'items ' , getter: 'getItems ' )]
2626 public array $ items = [];
2727
28- /** @return CheckboxItems */
28+ /** @return ListItem[] */
2929 public function getItems (): array
3030 {
3131 return array_map (function ($ item ) {
Original file line number Diff line number Diff line change 1212use Ibexa \DesignSystemTwig \Twig \Components \ListFieldTrait ;
1313use Symfony \Component \OptionsResolver \OptionsResolver ;
1414use Symfony \UX \TwigComponent \Attribute \AsTwigComponent ;
15- use Symfony \UX \TwigComponent \Attribute \ExposeInTemplate ;
1615
1716/**
1817 * @phpstan-type RadioButtonItem array{
You can’t perform that action at this time.
0 commit comments