We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code:
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 doctrine/common#983
8.1+
No response
The text was updated successfully, but these errors were encountered:
This also applies to PHP 8.0: https://3v4l.org/fVZOh
Sorry, something went wrong.
Worth noting the new case only works by chance because the fetch type overrides the ZEND_NAME_NOT_FQ flag: https://3v4l.org/JXNPW
new
ZEND_NAME_NOT_FQ
namespace App; class Foo { public function bar(string $p = new parent) { } } $r = new \ReflectionMethod(Foo::class, 'bar'); echo $r->getParameters()[0];
Parameter #0 [ string $p = new namespace\parent() ]
Fix class name FQN when AST dumping new and class const
fa0ef88
Fixes phpGH-9447
2cfb028
iluuu1994
No branches or pull requests
Description
The following code:
Resulted in this output:
But I expected this output instead:
Originally reported at doctrine/common#983
PHP Version
8.1+
Operating System
No response
The text was updated successfully, but these errors were encountered: