### Description The following code: ```php namespace App; class Foo { public function baz(string $arg = new Foo() . Foo::BAR) { } } $r = new \ReflectionMethod(Foo::class, 'baz'); echo $r->getParameters()[0]; ``` Resulted in this output: ``` Parameter #0 [ <optional> string $arg = new \App\Foo() . App\Foo::BAR ] ``` But I expected this output instead: ``` Parameter #0 [ <optional> string $arg = new \App\Foo() . \App\Foo::BAR ] ``` Originally reported at https://github.com/doctrine/common/issues/983 ### PHP Version 8.1+ ### Operating System _No response_