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
Using PHP 8.1 and doctrine/common 3.4.1
the method in my entity
public function formatAsString(string $rowDelim = "\n"): string { }
is turned in to
public function formatAsString(string $rowDelim = '\n'): string { }
in the proxy.
Fyi:
This is the version that 3.3.1 generates
public function formatAsString(string $rowDelim = ' '): string { }
The text was updated successfully, but these errors were encountered:
This might be a bug in how PHP is generating default values as 3.4.x started to relying on that. I'll try to have it reproduced later
Sorry, something went wrong.
This looks like a PHP issue to me, I opened php/php-src#9622 There might be a workaround, to be discovered.
@ampaze as a workaround you could define your method like this:
public function formatAsString(string $rowDelim = \PHP_EOL): string { }
referencing global consts is working good enough with 3.4.1
@malarzm \PHP_EOL is not the same than "\n" though
\PHP_EOL
"\n"
@stof you're right,I thought it was just "good enough" to mention :)
Successfully merging a pull request may close this issue.
Using PHP 8.1 and doctrine/common 3.4.1
the method in my entity
is turned in to
in the proxy.
Fyi:
This is the version that 3.3.1 generates
The text was updated successfully, but these errors were encountered: