@@ -224,7 +224,7 @@ public function testTraversableValues(): void
224
224
225
225
public function testPriorityXmlDataInterfaceOverTraversable (): void
226
226
{
227
- $ dataResponse = $ this ->createDataResponse (new class (['foo ' ]) extends ArrayObject implements XmlDataInterface {
227
+ $ dataResponse = $ this ->createDataResponse (new class (['foo ' ]) extends ArrayObject implements XmlDataInterface {
228
228
public function xmlTagName (): string
229
229
{
230
230
return 'xml-data ' ;
@@ -259,7 +259,7 @@ public function xmlData(): array
259
259
260
260
public function testPriorityXmlDataInterfaceOverTraversableInArray (): void
261
261
{
262
- $ dataResponse = $ this ->createDataResponse ([new class (['foo ' ]) extends ArrayObject implements XmlDataInterface {
262
+ $ dataResponse = $ this ->createDataResponse ([new class (['foo ' ]) extends ArrayObject implements XmlDataInterface {
263
263
public function xmlTagName (): string
264
264
{
265
265
return 'xml-data ' ;
@@ -306,7 +306,7 @@ public function testEmptyObjectValues(): void
306
306
307
307
public function testEmptyObjectValuesImplementXmlDataInterface (): void
308
308
{
309
- $ dataResponse = $ this ->createDataResponse (['object ' => new class () implements XmlDataInterface {
309
+ $ dataResponse = $ this ->createDataResponse (['object ' => new class () implements XmlDataInterface {
310
310
public function xmlTagName (): string
311
311
{
312
312
return 'empty ' ;
@@ -513,7 +513,7 @@ public function testNestedAndMixedValues(): void
513
513
514
514
public function testObjectWithPublicProperties (): void
515
515
{
516
- $ object = new class () {
516
+ $ object = new class () {
517
517
public int $ x = 7 ;
518
518
public float $ y = 42 ;
519
519
public string $ name = 'yii ' ;
@@ -566,7 +566,7 @@ public function testItemTagWhenNameIsEmptyOrInvalid(): void
566
566
567
567
private function createDummyObject (string $ string , int $ int , float $ float , array $ array , array $ attrs = []): object
568
568
{
569
- return new class ($ string , $ int , $ float , $ array , $ attrs ) implements XmlDataInterface {
569
+ return new class ($ string , $ int , $ float , $ array , $ attrs ) implements XmlDataInterface {
570
570
public string $ string ;
571
571
public int $ int ;
572
572
public float $ float ;
0 commit comments