@@ -101,6 +101,8 @@ class TypeResolverTest extends TestCase
101101 * @covers ::<private>
102102 *
103103 * @dataProvider provideKeywords
104+ *
105+ * @param class-string $expectedClass
104106 */
105107 public function testResolvingKeywords (string $ keyword , string $ expectedClass ): void
106108 {
@@ -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