Skip to content

Commit 35dbd64

Browse files
committed
test: phpdoc_types
#14
1 parent f4cfddd commit 35dbd64

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

tests/Fixtures/Ruleset/relax_actual.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,12 @@ public function phpdoc__phpdoc_to_comment()
470470
*/
471471
public function phpdoc__phpdoc_trim_consecutive_blank_line_separation($foo) {}
472472

473+
/**
474+
* @param STRING|String[] $bar
475+
* @return inT[]
476+
*/
477+
public function phpdoc__phpdoc_types($bar) {}
478+
473479
/**
474480
* @param string|int|\Foo|null $bar
475481
* @param \RuntimeException|CacheException $e

tests/Fixtures/Ruleset/relax_expected.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,12 @@ public function phpdoc__phpdoc_to_comment()
465465
*/
466466
public function phpdoc__phpdoc_trim_consecutive_blank_line_separation($foo) {}
467467

468+
/**
469+
* @param string|string[] $bar
470+
* @return int[]
471+
*/
472+
public function phpdoc__phpdoc_types($bar) {}
473+
468474
/**
469475
* @param null|string|int|\Foo $bar
470476
* @param \RuntimeException|CacheException $e

0 commit comments

Comments
 (0)