Skip to content

Commit 7d2ecf9

Browse files
committed
Temporary failing test for issue phpstan/phpstan#3008
1 parent abae606 commit 7d2ecf9

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

tests/PHPStan/Rules/PhpDoc/InvalidPhpDocTagValueRuleTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ public function testRule(): void
7474
'PHPDoc tag @var has invalid value (\\\Foo|\Bar $test): Unexpected token "\\\\\\\Foo|\\\Bar", expected type at offset 9',
7575
29,
7676
],
77+
/*[
78+
'PHPDoc tag @var has invalid value ...',
79+
59,
80+
],*/
81+
[
82+
'PHPDoc tag @var has invalid value ((Foo|Bar): Unexpected token "*/", expected \')\' at offset 18',
83+
62,
84+
],
7785
]);
7886
}
7987

tests/PHPStan/Rules/PhpDoc/data/invalid-phpdoc.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,14 @@ public function doFoo($a)
5151
}
5252

5353
}
54+
55+
class Baz
56+
{
57+
58+
/** @var callable(int) */
59+
private $fooProperty;
60+
61+
/** @var (Foo|Bar */
62+
private $barProperty;
63+
64+
}

0 commit comments

Comments
 (0)