@@ -376,7 +376,7 @@ public function testResolvingArrayExpressionObjectsTypes(): void
376376 $ resolvedType = $ fixture ->resolve ('(\stdClass|Reflection\DocBlock)[] ' , new Context ('phpDocumentor ' ));
377377
378378 $ this ->assertInstanceOf (Array_::class, $ resolvedType );
379- $ this ->assertSame ('( \stdClass|\phpDocumentor\Reflection\DocBlock)[] ' , (string ) $ resolvedType );
379+ $ this ->assertSame ('array< \stdClass|\phpDocumentor\Reflection\DocBlock> ' , (string ) $ resolvedType );
380380
381381 $ valueType = $ resolvedType ->getValueType ();
382382
@@ -405,7 +405,7 @@ public function testResolvingArrayExpressionSimpleTypes(): void
405405 $ resolvedType = $ fixture ->resolve ('(string|\stdClass|boolean)[] ' , new Context ('' ));
406406
407407 $ this ->assertInstanceOf (Array_::class, $ resolvedType );
408- $ this ->assertSame ('( string|\stdClass|bool)[] ' , (string ) $ resolvedType );
408+ $ this ->assertSame ('array< string|\stdClass|bool> ' , (string ) $ resolvedType );
409409
410410 $ valueType = $ resolvedType ->getValueType ();
411411
@@ -437,7 +437,7 @@ public function testResolvingArrayOfArrayExpressionTypes(): void
437437 $ resolvedType = $ fixture ->resolve ('(string|\stdClass)[][] ' , new Context ('' ));
438438
439439 $ this ->assertInstanceOf (Array_::class, $ resolvedType );
440- $ this ->assertSame ('( string|\stdClass)[][] ' , (string ) $ resolvedType );
440+ $ this ->assertSame ('array<array< string|\stdClass>> ' , (string ) $ resolvedType );
441441
442442 $ parentArrayType = $ resolvedType ->getValueType ();
443443 $ this ->assertInstanceOf (Array_::class, $ parentArrayType );
@@ -483,7 +483,7 @@ public function testResolvingArrayExpressionOrCompoundTypes(): void
483483 $ resolvedType = $ fixture ->resolve ('\stdClass|(string|\stdClass)[]|bool ' , new Context ('' ));
484484
485485 $ this ->assertInstanceOf (Compound::class, $ resolvedType );
486- $ this ->assertSame ('\stdClass|( string|\stdClass)[] |bool ' , (string ) $ resolvedType );
486+ $ this ->assertSame ('\stdClass|array< string|\stdClass> |bool ' , (string ) $ resolvedType );
487487
488488 $ firstType = $ resolvedType ->get (0 );
489489 $ this ->assertInstanceOf (Object_::class, $ firstType );
0 commit comments