File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 30
30
use Ramsey \Uuid \Uuid ;
31
31
use ReflectionClass ;
32
32
use ReflectionMethod ;
33
+ use ReflectionNamedType ;
33
34
use TheCodingMachine \TDBM \Dao \TestAlbumDao ;
34
35
use TheCodingMachine \TDBM \Dao \TestArticleDao ;
35
36
use TheCodingMachine \TDBM \Dao \TestCountryDao ;
@@ -1611,9 +1612,10 @@ public function testUuidv4(): void
1611
1612
public function testTypeHintedConstructors (): void
1612
1613
{
1613
1614
$ userBaseBeanReflectionConstructor = new \ReflectionMethod (UserBaseBean::class, '__construct ' );
1615
+ /** @var ReflectionNamedType $nameParam */
1614
1616
$ nameParam = $ userBaseBeanReflectionConstructor ->getParameters ()[0 ];
1615
1617
1616
- $ this ->assertSame ('string ' , ( string ) $ nameParam ->getType ());
1618
+ $ this ->assertSame ('string ' , $ nameParam ->getType ()-> getName ());
1617
1619
}
1618
1620
1619
1621
/**
@@ -1826,7 +1828,7 @@ public function testFilterBag(): void
1826
1828
public function testDecimalIsMappedToString (): void
1827
1829
{
1828
1830
$ reflectionClass = new \ReflectionClass (BoatBaseBean::class);
1829
- $ this ->assertSame ('string ' , ( string ) $ reflectionClass ->getMethod ('getLength ' )->getReturnType ());
1831
+ $ this ->assertSame ('string ' , $ reflectionClass ->getMethod ('getLength ' )->getReturnType ()-> getName ());
1830
1832
}
1831
1833
1832
1834
/**
You can’t perform that action at this time.
0 commit comments