Release 2.24 (#5097)

This commit is contained in:
Kevin Papst
2024-10-11 21:56:54 +02:00
committed by GitHub
parent 5fac6a642c
commit ff9bf163ee
32 changed files with 381 additions and 463 deletions

View File

@@ -26,7 +26,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
*/
final class ActivityType extends AbstractType
{
public function __construct(private ActivityHelper $activityHelper, private ProjectHelper $projectHelper)
public function __construct(private readonly ActivityHelper $activityHelper, private readonly ProjectHelper $projectHelper)
{
}
@@ -35,10 +35,10 @@ final class ActivityType extends AbstractType
return $this->activityHelper->getChoiceLabel($activity);
}
public function groupBy(Activity $activity, $key, $index): ?string
public function groupBy(Activity $activity, $key, $index): string
{
if (null === $activity->getProject()) {
return null;
return '';
}
return $this->projectHelper->getChoiceLabel($activity->getProject());