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 b2b8690 commit 7b79884Copy full SHA for 7b79884
tests/PHPStan/Rules/Generics/ClassTemplateTypeRuleTest.php
@@ -102,4 +102,9 @@ public function testNestedGenericTypes(): void
102
]);
103
}
104
105
+ public function testBug5446(): void
106
+ {
107
+ $this->analyse([__DIR__ . '/data/bug-5446.php'], []);
108
+ }
109
+
110
tests/PHPStan/Rules/Generics/data/bug-5446.php
@@ -0,0 +1,25 @@
1
+<?php
2
3
+namespace Bug5446;
4
5
+/** @template T */
6
+class A {}
7
8
+class B {}
9
10
+class C {}
11
+/**
12
+ * @template S
13
+ * @template T
14
+ */
15
+class D {}
16
17
+namespace barBug5446;
18
19
20
+ * @template First of \Bug5446\A
21
+ * @template Second of \Bug5446\B
22
+ * @template Third of \Bug5446\C<Second>
23
+ * @template Fourth of \Bug5446\D<First, Third>
24
25
+class X {}
0 commit comments