Run Rector on your code to see what it can do for you:
<?php -/** - * @var \App\View\AppView $this - * @var array<\App\Model\SomeEntity> $sickDays - */ foreach ($sickDays as $vacation): ?> <div class="leading-6"><?= $vacation->start_datetime->i18nFormat('EEEE, dd. MMMM YYYY') ?></div> <?php endforeach; ?>
Applied Rules:
Not a change you expect?
rector.php