Skip to content
Permalink
Browse files

Make test better

  • Loading branch information
muglug committed Dec 11, 2019
1 parent c27d0d9 commit af52590fef157efca2a7aea15bb8dd5eea27fbee
Showing with 11 additions and 11 deletions.
  1. +11 −11 tests/Template/ClassTemplateExtendsTest.php
@@ -3469,43 +3469,43 @@ public function foo($offset) : void {
* @template T1
*/
class Foo {
/** @var T */
/** @var T1 */
public $t;
/** @param T $t */
/** @param T1 $t */
public function __construct($t) {
$this->t = $t;
}
}
/**
* @template T
* @template T2
*/
class Bar {
/** @var T */
/** @var T2 */
public $t;
/** @param T $t */
/** @param T2 $t */
public function __construct($t) {
$this->t = $t;
}
}
/**
* @template T1
* @extends Bar<Foo<T1>>
* @template T3
* @extends Bar<Foo<T3>>
*/
class BarOfFoo extends Bar {
/** @param T1 $t */
/** @param T3 $t */
public function __construct($t) {
parent::__construct(new Foo($t));
}
}
/**
* @template T2
* @param T2 $t
* @return Bar<Foo<T2>>
* @template T4
* @param T4 $t
* @return Bar<Foo<T4>>
*/
function baz($t) {
return new BarOfFoo("hello");

0 comments on commit af52590

Please sign in to comment.
You can’t perform that action at this time.