Skip to content

Commit a547799

Browse files
committed
fix cs
1 parent 97f07c5 commit a547799

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/lib/Twig/Components/Checkbox/ListField.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use Ibexa\DesignSystemTwig\Twig\Components\ListFieldTrait;
1313
use Symfony\Component\OptionsResolver\OptionsResolver;
1414
use 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' => []]);

src/lib/Twig/Components/ListFieldTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

src/lib/Twig/Components/RadioButton/ListField.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use Ibexa\DesignSystemTwig\Twig\Components\ListFieldTrait;
1313
use Symfony\Component\OptionsResolver\OptionsResolver;
1414
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;
15-
use Symfony\UX\TwigComponent\Attribute\ExposeInTemplate;
1615

1716
/**
1817
* @phpstan-type RadioButtonItem array{

0 commit comments

Comments
 (0)