@@ -24,6 +24,15 @@ class TypeUnion
2424 /* testTypeUnionPropertyMulti3 */
2525 | null $ arrayOrFalse ;
2626
27+ /* testTypeUnionPropertyNamespaceRelative */
28+ public namespace \Sub \NameA |namespace \Sub \NameB $ namespaceRelative ;
29+
30+ /* testTypeUnionPropertyPartiallyQualified */
31+ public Partially \Qualified \NameA |Partially \Qualified \NameB $ partiallyQual ;
32+
33+ /* testTypeUnionPropertyFullyQualified */
34+ public \Fully \Qualified \NameA |\Fully \Qualified \NameB $ fullyQual ;
35+
2736 public function paramTypes (
2837 /* testTypeUnionParam1 */
2938 int |float $ paramA /* testBitwiseOrParamDefaultValue */ = CONSTANT_A | CONSTANT_B ,
@@ -35,6 +44,15 @@ class TypeUnion
3544 return (($ a1 ^ $ b1 ) |($ a2 ^ $ b2 )) + $ c ;
3645 }
3746
47+ public function identifierNames (
48+ /* testTypeUnionParamNamespaceRelative */
49+ namespace \Sub \NameA |namespace \Sub \NameB $ paramA ,
50+ /* testTypeUnionParamPartiallyQualified */
51+ Partially \Qualified \NameA |Partially \Qualified \NameB $ paramB ,
52+ /* testTypeUnionParamFullyQualified */
53+ \Fully \Qualified \NameA |\Fully \Qualified \NameB $ paramC ,
54+ ) {}
55+
3856 /* testTypeUnionReturnType */
3957 public function returnType () : int |false {}
4058
@@ -43,6 +61,15 @@ class TypeUnion
4361
4462 /* testTypeUnionAbstractMethodReturnType1 */
4563 abstract public function abstractMethod (): object |array /* testTypeUnionAbstractMethodReturnType2 */ |false ;
64+
65+ /* testTypeUnionReturnTypeNamespaceRelative */
66+ public function identifierNamesReturnRelative () : namespace \Sub \NameA |namespace \Sub \NameB {}
67+
68+ /* testTypeUnionReturnPartiallyQualified */
69+ public function identifierNamesReturnPQ () : Partially \Qualified \NameA |Partially \Qualified \NameB {}
70+
71+ /* testTypeUnionReturnFullyQualified */
72+ public function identifierNamesReturnFQ () : \Fully \Qualified \NameA |\Fully \Qualified \NameB {}
4673}
4774
4875/* testTypeUnionClosureParamIllegalNullable */
0 commit comments