@@ -382,7 +382,7 @@ public function testResolvingArrayExpressionObjectsTypes(): void
382382 $ resolvedType = $ fixture ->resolve ('(\stdClass|Reflection\DocBlock)[] ' , new Context ('phpDocumentor ' ));
383383
384384 $ this ->assertInstanceOf (Array_::class, $ resolvedType );
385- $ this ->assertSame ('( \stdClass|\phpDocumentor\Reflection\DocBlock)[] ' , (string ) $ resolvedType );
385+ $ this ->assertSame ('array< \stdClass|\phpDocumentor\Reflection\DocBlock> ' , (string ) $ resolvedType );
386386
387387 $ valueType = $ resolvedType ->getValueType ();
388388
@@ -411,7 +411,7 @@ public function testResolvingArrayExpressionSimpleTypes(): void
411411 $ resolvedType = $ fixture ->resolve ('(string|\stdClass|boolean)[] ' , new Context ('' ));
412412
413413 $ this ->assertInstanceOf (Array_::class, $ resolvedType );
414- $ this ->assertSame ('( string|\stdClass|bool)[] ' , (string ) $ resolvedType );
414+ $ this ->assertSame ('array< string|\stdClass|bool> ' , (string ) $ resolvedType );
415415
416416 $ valueType = $ resolvedType ->getValueType ();
417417
@@ -443,7 +443,7 @@ public function testResolvingArrayOfArrayExpressionTypes(): void
443443 $ resolvedType = $ fixture ->resolve ('(string|\stdClass)[][] ' , new Context ('' ));
444444
445445 $ this ->assertInstanceOf (Array_::class, $ resolvedType );
446- $ this ->assertSame ('( string|\stdClass)[][] ' , (string ) $ resolvedType );
446+ $ this ->assertSame ('array<array< string|\stdClass>> ' , (string ) $ resolvedType );
447447
448448 $ parentArrayType = $ resolvedType ->getValueType ();
449449 $ this ->assertInstanceOf (Array_::class, $ parentArrayType );
@@ -489,7 +489,7 @@ public function testResolvingArrayExpressionOrCompoundTypes(): void
489489 $ resolvedType = $ fixture ->resolve ('\stdClass|(string|\stdClass)[]|bool ' , new Context ('' ));
490490
491491 $ this ->assertInstanceOf (Compound::class, $ resolvedType );
492- $ this ->assertSame ('\stdClass|( string|\stdClass)[] |bool ' , (string ) $ resolvedType );
492+ $ this ->assertSame ('\stdClass|array< string|\stdClass> |bool ' , (string ) $ resolvedType );
493493
494494 $ firstType = $ resolvedType ->get (0 );
495495 $ this ->assertInstanceOf (Object_::class, $ firstType );
0 commit comments