Closed ampaze closed 2 years ago
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
This looks like a PHP issue to me, I opened https://github.com/php/php-src/issues/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
@stof you're right,I thought it was just "good enough" to mention :)
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