Skip to content

Commit 20e0d9c

Browse files
committed
[DeadCode] Handle multi vars on RemoveNonExistingVarAnnotationRector
1 parent f6de34b commit 20e0d9c

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

  • rules-tests/DeadCode/Rector/Node/RemoveNonExistingVarAnnotationRector/Fixture
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
/**
4+
* @var \App\View\AppView $this
5+
* @var array<\App\Model\SomeEntity> $sickDays
6+
*/
7+
foreach ($sickDays as $vacation) {
8+
9+
}
10+
11+
?>
12+
-----
13+
<?php
14+
15+
/**
16+
* @var array<\App\Model\SomeEntity> $sickDays
17+
*/
18+
foreach ($sickDays as $vacation) {
19+
20+
}
21+
22+
?>

0 commit comments

Comments
 (0)