12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- namespace EasySwoole\DoctrineAnnotation\Tests\Fixtures;
- /**
- * @template T
- */
- interface WithPHPStanExtendsAnnotations
- {
- }
- /**
- * @template T
- */
- class ClassWithPHPStanExtendsAnnotationsGeneric
- {
- }
- /**
- * @template T
- */
- trait GenericPHPStanTrait
- {
- }
- /**
- * @template T
- * @implements WithPHPStanExtendsAnnotationsInterface<int>
- * @extends ClassWithPHPStanExtendsAnnotationsGeneric<int>
- */
- class ClassWithPHPStanGenericsAnnotations extends ClassWithPHPStanExtendsAnnotationsGeneric implements
- WithPHPStanExtendsAnnotations
- {
- /**
- * @use GenericPHPStanTrait<T>
- */
- use GenericPHPStanTrait;
- /** @var array<T> */
- private $bar;
- /**
- * @param array<T> $array
- *
- * @return array<T>
- */
- public function foo($array)
- {
- return $this->bar;
- }
- /**
- * @Template("@foo.html.twig")
- */
- public function twigTemplateFunctionName(): void
- {
- }
- }
|