@@ -55,6 +55,11 @@ public static function dataNullable()
55
55
'property declaration, public and protected set ' => ['/* testNullablePublicProtectedSet */ ' ],
56
56
'property declaration, final, no visibility ' => ['/* testNullableFinalOnly */ ' ],
57
57
'property declaration, abstract, no visibility ' => ['/* testNullableAbstractOnly */ ' ],
58
+
59
+ 'closure param type, nullable int ' => ['/* testClosureParamTypeNullableInt */ ' ],
60
+ 'closure param type, nullable callable ' => ['/* testClosureParamTypeNullableCallable */ ' ],
61
+ 'closure return type, nullable int ' => ['/* testClosureReturnTypeNullableInt */ ' ],
62
+ 'function return type, nullable callable ' => ['/* testFunctionReturnTypeNullableCallable */ ' ],
58
63
];
59
64
60
65
}//end dataNullable()
@@ -91,7 +96,25 @@ public function testInlineThen($testMarker)
91
96
public static function dataInlineThen ()
92
97
{
93
98
return [
94
- 'ternary in property default value ' => ['/* testInlineThenInPropertyDefaultValue */ ' ],
99
+ 'ternary in property default value ' => ['/* testInlineThenInPropertyDefaultValue */ ' ],
100
+
101
+ 'ternary ? followed by array declaration ' => ['/* testInlineThenWithArrayDeclaration */ ' ],
102
+
103
+ 'ternary ? followed by unqualified constant ' => ['/* testInlineThenWithUnqualifiedNameAndNothingElse */ ' ],
104
+ 'ternary ? followed by unqualified function call ' => ['/* testInlineThenWithUnqualifiedNameAndParens */ ' ],
105
+ 'ternary ? followed by unqualified static method call ' => ['/* testInlineThenWithUnqualifiedNameAndDoubleColon */ ' ],
106
+
107
+ 'ternary ? followed by fully qualified constant ' => ['/* testInlineThenWithFullyQualifiedNameAndNothingElse */ ' ],
108
+ 'ternary ? followed by fully qualified function call ' => ['/* testInlineThenWithFullyQualifiedNameAndParens */ ' ],
109
+ 'ternary ? followed by fully qualified static method call ' => ['/* testInlineThenWithFullyQualifiedNameAndDoubleColon */ ' ],
110
+
111
+ 'ternary ? followed by partially qualified constant ' => ['/* testInlineThenWithPartiallyQualifiedNameAndNothingElse */ ' ],
112
+ 'ternary ? followed by partially qualified function call ' => ['/* testInlineThenWithPartiallyQualifiedNameAndParens */ ' ],
113
+ 'ternary ? followed by partially qualified static method call ' => ['/* testInlineThenWithPartiallyQualifiedNameAndDoubleColon */ ' ],
114
+
115
+ 'ternary ? followed by namespace relative constant ' => ['/* testInlineThenWithNamespaceRelativeNameAndNothingElse */ ' ],
116
+ 'ternary ? followed by namespace relative function call ' => ['/* testInlineThenWithNamespaceRelativeNameAndParens */ ' ],
117
+ 'ternary ? followed by namespace relative static method call ' => ['/* testInlineThenWithNamespaceRelativeNameAndDoubleColon */ ' ],
95
118
];
96
119
97
120
}//end dataInlineThen()
0 commit comments