Skip to content

Commit 2cda7cf

Browse files
Fix
1 parent fc8e1ea commit 2cda7cf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

doc/fields/ChoiceField.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pages (``index`` and ``detail``)::
9191
The built-in badge styles are the same as Bootstrap: ``'success'``,
9292
``'warning'``, ``'danger'``, ``'info'``, ``'primary'``, ``'secondary'``,
9393
``'light'``, ``'dark'``, but you can also pass a custom
94-
``EasyCorp\Bundle\EasyAdminBundle\Field\Style\BadgeStyle`` instance::
94+
``EasyCorp\Bundle\EasyAdminBundle\Field\Style\BadgeStyle`` instance::
9595

9696
yield ChoiceField::new('...')->renderAsBadges([
9797
// $value => $badgeStyleName

src/Field/ChoiceField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function setTranslatableChoices($choiceGenerator): self
117117
*
118118
* Possible badge types: 'success', 'warning', 'danger', 'info', 'primary', 'secondary', 'light', 'dark'
119119
*
120-
* @param array<string>|bool|callable $badgeSelector
120+
* @param array<BadgeStyle|string>|bool|callable $badgeSelector
121121
*/
122122
public function renderAsBadges($badgeSelector = true): self
123123
{

src/Field/Configurator/ChoiceConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ private function getChoices(array|callable|null $choiceGenerator, EntityDto $ent
176176
}
177177

178178
/**
179-
* @param array<string>|bool|callable|null $badgeSelector
179+
* @param array<BadgeStyle|string>|bool|callable|null $badgeSelector
180180
*
181181
* @return array{string, string|null}
182182
*/

0 commit comments

Comments
 (0)