We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ae5874 commit 1719af0Copy full SHA for 1719af0
tests/PHPStan/Rules/PhpDoc/data/bug-12458.php
@@ -1,6 +1,6 @@
1
<?php declare(strict_types = 1);
2
3
-Namespace Bug12458;
+namespace Bug12458;
4
5
class HelloWorld
6
{
@@ -14,4 +14,16 @@ public function test(array $a): void
14
return $a;
15
};
16
}
17
+
18
+ /**
19
+ * @template T of HelloWorld
20
+ * @param list<T> $a
21
+ */
22
+ public function testGeneric(array $a): void
23
+ {
24
+ /** @var \Closure(): list<T> $c */
25
+ $c = function () use ($a): array {
26
+ return $a;
27
+ };
28
+ }
29
0 commit comments