File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
src/phpDocumentor/Reflection/Php/Factory
tests/unit/phpDocumentor/Reflection/Php/Factory Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,8 @@ public function matches($object): bool
61
61
*/
62
62
protected function doCreate ($ object , StrategyContainer $ strategies , ?Context $ context = null )
63
63
{
64
- Assert::isInstanceOf (Param::class, $ object );
65
- Assert::isInstanceOf (Variable::class, $ object ->var );
64
+ Assert::isInstanceOf ($ object , Param::class);
65
+ Assert::isInstanceOf ($ object ->var , Variable::class );
66
66
$ default = null ;
67
67
if ($ object ->default !== null ) {
68
68
$ default = $ this ->valueConverter ->prettyPrintExpr ($ object ->default );
Original file line number Diff line number Diff line change @@ -54,8 +54,7 @@ public function testCreate()
54
54
$ factory = new ProjectFactoryStrategies ([]);
55
55
56
56
$ argMock = m::mock (Param::class);
57
- $ argMock ->var = new stdClass ;
58
- $ argMock ->var ->name = 'myArgument ' ;
57
+ $ argMock ->var = new \PhpParser \Node \Expr \Variable ('myArgument ' );
59
58
$ argMock ->default = new String_ ('MyDefault ' );
60
59
$ argMock ->byRef = true ;
61
60
$ argMock ->variadic = true ;
You can’t perform that action at this time.
0 commit comments