Skip to content

Commit

Permalink
Temporary failing test for issue phpstan/phpstan#3008
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Feb 26, 2020
1 parent abae606 commit 7d2ecf9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/PHPStan/Rules/PhpDoc/InvalidPhpDocTagValueRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ public function testRule(): void
'PHPDoc tag @var has invalid value (\\\Foo|\Bar $test): Unexpected token "\\\\\\\Foo|\\\Bar", expected type at offset 9',
29,
],
/*[
'PHPDoc tag @var has invalid value ...',
59,
],*/
[
'PHPDoc tag @var has invalid value ((Foo|Bar): Unexpected token "*/", expected \')\' at offset 18',
62,
],
]);
}

Expand Down
11 changes: 11 additions & 0 deletions tests/PHPStan/Rules/PhpDoc/data/invalid-phpdoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,14 @@ public function doFoo($a)
}

}

class Baz
{

/** @var callable(int) */
private $fooProperty;

/** @var (Foo|Bar */
private $barProperty;

}

0 comments on commit 7d2ecf9

Please sign in to comment.