Skip to content

Commit

Permalink
added test for multiline templates (#5282)
Browse files Browse the repository at this point in the history
  • Loading branch information
elnoro authored Feb 25, 2021
1 parent ed6fdaa commit fff32d0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/Template/ClassTemplateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3322,6 +3322,27 @@ function foo(A $a) : void {
takesA($a);
}',
],
'templateIsAComplexMultilineType' => [
'<?php
/**
* @template T of array{
* a: string,
* b: int
* }
*/
class MyContainer {
/** @var T */
private $value;
/** @param T $value */
public function __construct($value) {
$this->value = $value;
}
/** @return T */
public function getValue() {
return $this->value;
}
}'
],
];
}

Expand Down

0 comments on commit fff32d0

Please sign in to comment.