File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
tests/PhpGenerator/expected Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ public function fromPropertyReflection(\ReflectionProperty $from): Property
304
304
305
305
public function fromObject (object $ obj ): Literal
306
306
{
307
- return new Literal ('new ' . get_class ($ obj ) . '(/* unknown */) ' );
307
+ return new Literal ('new \\ ' . get_class ($ obj ) . '(/* unknown */) ' );
308
308
}
309
309
310
310
Original file line number Diff line number Diff line change 1
- #[Attr(new Abc\Attr(/* unknown */))]
1
+ #[Attr(new \ Abc\Attr(/* unknown */))]
2
2
class Class11
3
3
{
4
4
final public const FOO = 10;
@@ -12,7 +12,7 @@ class Class11
12
12
}
13
13
14
14
15
- public function bar($c = new stdClass(/* unknown */))
15
+ public function bar($c = new \ stdClass(/* unknown */))
16
16
{
17
17
}
18
18
}
You can’t perform that action at this time.
0 commit comments