@@ -95,6 +95,8 @@ class TypeResolverTest extends TestCase
9595 * @uses \phpDocumentor\Reflection\Types\Array_
9696 * @uses \phpDocumentor\Reflection\Types\Object_
9797 *
98+ * @param class-string $expectedClass
99+ *
98100 * @covers ::__construct
99101 * @covers ::resolve
100102 * @covers ::createType
@@ -291,9 +293,8 @@ public function testResolvingNestedTypedArrays(): void
291293
292294 $ resolvedType = $ fixture ->resolve ('string[][] ' , new Context ('' ));
293295
294- $ childValueType = $ resolvedType ->getValueType ();
295-
296296 $ this ->assertInstanceOf (Array_::class, $ resolvedType );
297+ $ childValueType = $ resolvedType ->getValueType ();
297298
298299 $ this ->assertSame ('string[][] ' , (string ) $ resolvedType );
299300 $ this ->assertInstanceOf (Compound::class, $ resolvedType ->getKeyType ());
@@ -414,11 +415,12 @@ public function testResolvingMixedCompoundTypes(): void
414415
415416 $ resolvedType = $ firstType ->getValueType ();
416417
418+ $ this ->assertInstanceOf (Intersection::class, $ resolvedType );
417419 $ firstSubType = $ resolvedType ->get (0 );
418420 $ secondSubType = $ resolvedType ->get (1 );
419421
420422 $ this ->assertInstanceOf (Object_::class, $ firstSubType );
421- $ this ->assertInstanceOf (Fqsen::class, $ secondSubType ->getFqsen ());
423+ $ this ->assertInstanceOf (Fqsen::class, $ firstSubType ->getFqsen ());
422424 $ this ->assertInstanceOf (Object_::class, $ secondSubType );
423425 $ this ->assertInstanceOf (Fqsen::class, $ secondSubType ->getFqsen ());
424426 }
0 commit comments