Skip to content

Commit 593cc3c

Browse files
dktappsondrejmirtes
authored andcommitted
tests
1 parent 6aa0179 commit 593cc3c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tests/PHPStan/Parser/data/cleaning-1-after.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ public function doFoo()
3838
/** @var Test */
3939
/** @var Test2 */
4040
/** @var Test3 */
41+
/** @phpstan-var Test */
42+
/** @psalm-var Test */
4143
yield;
4244
\func_get_args();
4345
}

tests/PHPStan/Parser/data/cleaning-1-before.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ public function doFoo()
6868
/** @var Test3 */
6969
$foo = doFoo();
7070

71+
/** @phpstan-var Test */
72+
$foo = doFoo();
73+
74+
/** @psalm-var Test */
75+
$foo = doFoo();
76+
7177
if (rand(0, 1)) {
7278
yield;
7379
}

0 commit comments

Comments
 (0)