Re: [PHP-DEV] Add leading backslash to enum and class names in var_export

2022-03-31 Thread Derick Rethans
On 31 March 2022 16:45:29 BST, Ilija Tovilo wrote: >To avoid disruption, I'm proposing to merge this into PHP 8.2 only. >Unless anybody has any objections to this change I will merge it in a >few weeks. As original author of var_export, I believe this is good to merge, but for PHP 8.2+ only.

Re: [PHP-DEV] Add leading backslash to enum and class names in var_export

2022-03-31 Thread Nicolas Grekas
Le jeu. 31 mars 2022 à 17:50, Larry Garfield a écrit : > On Thu, Mar 31, 2022, at 10:45 AM, Ilija Tovilo wrote: > > Hi everyone > > > > We've had two bug reports for var_export not working for enums. The > > reason for that is that var_export does not add a leading backslash to > > names of enums

Re: [PHP-DEV] Add leading backslash to enum and class names in var_export

2022-03-31 Thread Larry Garfield
On Thu, Mar 31, 2022, at 10:45 AM, Ilija Tovilo wrote: > Hi everyone > > We've had two bug reports for var_export not working for enums. The > reason for that is that var_export does not add a leading backslash to > names of enums. This will cause them to be resolved as > `\CurrentNamespace\EnumNam

[PHP-DEV] Add leading backslash to enum and class names in var_export

2022-03-31 Thread Ilija Tovilo
Hi everyone We've had two bug reports for var_export not working for enums. The reason for that is that var_export does not add a leading backslash to names of enums. This will cause them to be resolved as `\CurrentNamespace\EnumNamespace\EnumName` instead of just `\EnumNamespace\EnumName`. enum