@@ -98,6 +98,7 @@ public function testShapeWithExtraKey(): void {
9898 $x =
9999 <test:attribute-types
100100 /* HH_IGNORE_ERROR[4110] */
101+ /* HH_IGNORE_ERROR[4343] */
101102 /* HH_IGNORE_ERROR[4166] */
102103 myshape = { shape (' foo' => ' herp' , ' bar' => ' derp' , ' baz' => ' extra' )}
103104 /> ;
@@ -130,7 +131,7 @@ public function testValidArrayKeys(): void {
130131
131132 public function testInvalidArrayKeys (): void {
132133 expect (() ==> {
133- $x = <test:attribute-types myarraykey = { /* HH_FIXME[4110] */ 1.23 } /> ;
134+ $x = <test:attribute-types myarraykey = { /* HH_FIXME[4110] */ /* HH_FIXME[4343] */ 1.23 } /> ;
134135 $x -> toString();
135136 })-> toThrow(XHPInvalidAttributeException :: class );
136137 }
@@ -144,7 +145,7 @@ public function testValidNum(): void {
144145
145146 public function testInvalidNum (): void {
146147 expect (() ==> {
147- $x = <test:attribute-types mynum = /* HH_FIXME[4110] */ " 123" /> ;
148+ $x = <test:attribute-types mynum = /* HH_FIXME[4110] */ /* HH_FIXME[4343] */ " 123" /> ;
148149 $x -> toString();
149150 })-> toThrow(XHPInvalidAttributeException :: class );
150151 }
@@ -155,12 +156,14 @@ public function testNoAttributes(): void {
155156
156157 public function testStringableObjectAsString (): void {
157158 /* HH_IGNORE_ERROR[4110] */
159+ /* HH_IGNORE_ERROR[4343] */
158160 $x = <test:attribute-types mystring = { new StringableTestClass ()} /> ;
159161 expect ($x -> :mystring )-> toBeSame(' StringableTestClass' );
160162 }
161163
162164 public function testIntegerAsString (): void {
163165 /* HH_IGNORE_ERROR[4110] */
166+ /* HH_IGNORE_ERROR[4343] */
164167 $x = <test:attribute-types mystring = { 123 } /> ;
165168 expect ($x -> :mystring )-> toBeSame(' 123' );
166169 }
@@ -169,31 +172,34 @@ public function testUnstringableObjectAsString(): void {
169172 expect (() ==> {
170173 $x =
171174 <test:attribute-types
172- mystring = { /* HH_FIXME[4110] */ new EmptyTestClass ()}
175+ mystring = { /* HH_FIXME[4110] */ /* HH_FIXME[4343] */ new EmptyTestClass ()}
173176 /> ;
174177 })-> toThrow(XHPInvalidAttributeException :: class );
175178 }
176179
177180 public function testArrayAsString (): void {
178181 expect (() ==> {
179- $x = <test:attribute-types mystring = { /* HH_FIXME[4110] */ []} /> ;
182+ $x = <test:attribute-types mystring = { /* HH_FIXME[4110] */ /* HH_FIXME[4343] */ []} /> ;
180183 })-> toThrow(XHPInvalidAttributeException :: class );
181184 }
182185
183186 public function testIntishStringAsInt (): void {
184187 /* HH_IGNORE_ERROR[4110] */
188+ /* HH_IGNORE_ERROR[4343] */
185189 $x = <test:attribute-types myint = { ' 123' } /> ;
186190 expect ($x -> :myint )-> toBeSame(123 );
187191 }
188192
189193 public function testFloatAsInt (): void {
190194 /* HH_IGNORE_ERROR[4110] */
195+ /* HH_IGNORE_ERROR[4343] */
191196 $x = <test:attribute-types myint = { 1.23 } /> ;
192197 expect ($x -> :myint )-> toBeSame(1 );
193198 }
194199
195200 public function testFloatishStringAsInt (): void {
196201 /* HH_IGNORE_ERROR[4110] */
202+ /* HH_IGNORE_ERROR[4343] */
197203 $x = <test:attribute-types myint = " 1.23" /> ;
198204 expect ($x -> :myint )-> toBeSame(1 );
199205 }
@@ -202,52 +208,55 @@ public function testObjectAsInt(): void {
202208 expect (() ==> {
203209 $x =
204210 <test:attribute-types
205- myint = { /* HH_FIXME[4110] */ new EmptyTestClass ()}
211+ myint = { /* HH_FIXME[4110] */ /* HH_FIXME[4343] */ new EmptyTestClass ()}
206212 /> ;
207213 })-> toThrow(XHPInvalidAttributeException :: class );
208214 }
209215
210216 public function testArrayAsInt (): void {
211217 expect (() ==> {
212- $x = <test:attribute-types myint = { /* HH_FIXME[4110] */ []} /> ;
218+ $x = <test:attribute-types myint = { /* HH_FIXME[4110] */ /* HH_FIXME[4343] */ []} /> ;
213219 })-> toThrow(XHPInvalidAttributeException :: class );
214220 }
215221
216222 public function testNumericPrefixStringAsInt (): void {
217223 expect (() ==> {
218- $x = <test:attribute-types myint = /* HH_FIXME[4110] */ " 123derp" /> ;
224+ $x = <test:attribute-types myint = /* HH_FIXME[4110] */ /* HH_FIXME[4343] */ " 123derp" /> ;
219225 })-> toThrow(XHPInvalidAttributeException :: class );
220226 }
221227
222228 public function testTrueStringAsBool (): void {
223229 /* HH_IGNORE_ERROR[4110] */
230+ /* HH_IGNORE_ERROR[4343] */
224231 $x = <test:attribute-types mybool = " true" /> ;
225232 expect ($x -> :mybool )-> toBeSame(true );
226233 }
227234
228235 public function testFalseStringAsBool (): void {
229236 /* HH_IGNORE_ERROR[4110] */
237+ /* HH_IGNORE_ERROR[4343] */
230238 $x = <test:attribute-types mybool = " false" /> ;
231239 expect ($x -> :mybool )-> toBeSame(false );
232240 }
233241
234242 public function testMixedCaseFalseStringAsBool (): void {
235243 expect (() ==> {
236- $x = <test:attribute-types mybool = /* HH_FIXME[4110] */ " False" /> ;
244+ $x = <test:attribute-types mybool = /* HH_FIXME[4110] */ /* HH_FIXME[4343] */ " False" /> ;
237245 })-> toThrow(XHPInvalidAttributeException :: class );
238246 // 'False' is actually truthy
239247 }
240248
241249 public function testNoStringAsBool (): void {
242250 expect (() ==> {
243- $x = <test:attribute-types mybool = /* HH_FIXME[4110] */ " No" /> ;
251+ $x = <test:attribute-types mybool = /* HH_FIXME[4110] */ /* HH_FIXME[4343] */ " No" /> ;
244252 })-> toThrow(XHPInvalidAttributeException :: class );
245253 // 'No' is actually truthy
246254 }
247255
248256 public function testAttrNameAsBool (): void {
249257 // idiomatic - eg checked="checked"
250258 /* HH_IGNORE_ERROR[4110] */
259+ /* HH_IGNORE_ERROR[4343] */
251260 $x = <test:attribute-types mybool = " mybool" /> ;
252261 expect ($x -> :mybool )-> toBeSame(true );
253262 }
@@ -260,36 +269,39 @@ public function testInvalidEnumValue(): void {
260269
261270 public function testIntAsFloat (): void {
262271 /* HH_IGNORE_ERROR[4110] */
272+ /* HH_IGNORE_ERROR[4343] */
263273 $x = <test:attribute-types myfloat = { 123 } /> ;
264274 expect ($x -> :myfloat )-> toBeSame(123.0 );
265275 }
266276
267277 public function testNumericStringsAsFloats (): void {
268278 /* HH_IGNORE_ERROR[4110] */
279+ /* HH_IGNORE_ERROR[4343] */
269280 $x = <test:attribute-types myfloat = " 123" /> ;
270281 expect ($x -> :myfloat )-> toBeSame(123.0 );
271282 /* HH_IGNORE_ERROR[4110] */
283+ /* HH_IGNORE_ERROR[4343] */
272284 $x = <test:attribute-types myfloat = " 1.23" /> ;
273285 expect ($x -> :myfloat )-> toBeSame(1.23 );
274286 }
275287
276288 public function testNonNumericStringAsFloat (): void {
277289 expect (() ==> {
278- $x = <test:attribute-types myfloat = /* HH_FIXME[4110] */ " herpderp" /> ;
290+ $x = <test:attribute-types myfloat = /* HH_FIXME[4110] */ /* HH_FIXME[4343] */ " herpderp" /> ;
279291 })-> toThrow(XHPInvalidAttributeException :: class );
280292 }
281293
282294 public function testNumericPrefixStringAsFloat (): void {
283295 expect (() ==> {
284- $x = <test:attribute-types myfloat = /* HH_FIXME[4110] */ " 123derp" /> ;
296+ $x = <test:attribute-types myfloat = /* HH_FIXME[4110] */ /* HH_FIXME[4343] */ " 123derp" /> ;
285297 })-> toThrow(XHPInvalidAttributeException :: class );
286298 }
287299
288300 public function testNotAContainerAsArray (): void {
289301 expect (() ==> {
290302 $x =
291303 <test:attribute-types
292- myarray = { /* HH_FIXME[4110] */ new EmptyTestClass ()}
304+ myarray = { /* HH_FIXME[4110] */ /* HH_FIXME[4343] */ new EmptyTestClass ()}
293305 /> ;
294306 })-> toThrow(XHPInvalidAttributeException :: class );
295307 }
@@ -298,7 +310,7 @@ public function testHackContainerAsArray(): void {
298310 expect (() ==> {
299311 $x =
300312 <test:attribute-types
301- myarray = { /* HH_FIXME[4110] */ Vector {1 , 2 , 3 }}
313+ myarray = { /* HH_FIXME[4110] */ /* HH_FIXME[4343] */ Vector {1 , 2 , 3 }}
302314 /> ;
303315 })-> toThrow(XHPInvalidAttributeException :: class );
304316 }
@@ -307,14 +319,14 @@ public function testIncompatibleObjectAsObject(): void {
307319 expect (() ==> {
308320 $x =
309321 <test:attribute-types
310- myobject = { /* HH_FIXME[4110] */ new EmptyTestClass ()}
322+ myobject = { /* HH_FIXME[4110] */ /* HH_FIXME[4343] */ new EmptyTestClass ()}
311323 /> ;
312324 })-> toThrow(XHPInvalidAttributeException :: class );
313325 }
314326
315327 public function testPassingArrayAsVector (): void {
316328 expect (() ==> {
317- $x = <test:attribute-types myvector = { /* HH_FIXME[4110] */ [1 , 2 , 3 ]} /> ;
329+ $x = <test:attribute-types myvector = { /* HH_FIXME[4110] */ /* HH_FIXME[4343] */ [1 , 2 , 3 ]} /> ;
318330 })-> toThrow(XHPInvalidAttributeException :: class );
319331 }
320332
@@ -380,6 +392,7 @@ public function testRenderCallableAttribute(): void {
380392 $x =
381393 <test:callable-attribute
382394 /* HH_IGNORE_ERROR[4110] */
395+ /* HH_IGNORE_ERROR[4343] */
383396 foo = { function () {
384397 } }
385398 /> ;
0 commit comments