-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
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
ReflectionParameter::__toString mangles special characters in strings #9622
Comments
Not sure if feasible or not so just throwing ideas: preserving |
Using double quotes would work, provided we also escape dollar signs. |
I'm closing here because I had a look at |
@nicolas-grekas do you intend to submit the fix to doctrine/common then ? |
See doctrine/common#988 (comment) yes |
Description
Issue demoed at https://3v4l.org/bMiN9#v8.1.10
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
PHP 8.1+
Operating System
No response
The text was updated successfully, but these errors were encountered: