-
-
Notifications
You must be signed in to change notification settings - Fork 737
Closed
rectorphp/rector-src
#7780Labels
Description
Bug Report
| Subject | Details |
|---|---|
| Rector version | last dev-main |
| Installed as | composer dependency |
Minimal PHP Code Causing Issue
See https://getrector.com/demo/02e26511-dced-43a7-9556-41736cd34f4e
<?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; ?>Responsible rules
RemoveNonExistingVarAnnotationRector
Expected Behavior
It should not remove the whole phpdoc part, only the first @var annotation as its not used.
If you remove the first @var \App\View\AppView $this definition it doesn't remove the phpdoc.