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] instance version of match ?

2022-03-31 Thread Arnaud Le Blanc
On mardi 29 mars 2022 15:33:41 CEST Thomas Nunninger wrote: > Hi, > > Am 29.03.22 um 14:34 schrieb Rowan Tommins: > > On 29/03/2022 11:59, Robert Landers wrote: > >> $object instanceof AnotherInterface => 'bar', > >> > >> We can see that `SomeInterface` will resolve the interface and not

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

2022-03-31 Thread Sara Golemon
> On Mar 31, 2022, at 11:03, Christoph M. Becker wrote: > > On 31.03.2022 at 17:45, Ilija Tovilo wrote: > >> 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

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

2022-03-31 Thread Christoph M. Becker
On 31.03.2022 at 17:45, Ilija Tovilo wrote: > 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 o

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

Re: [PHP-DEV] Re: [RFC][Under discussion] Deprecate ${} string interpolation

2022-03-31 Thread Guilliam Xavier
Hi Ilija, On Thu, Mar 31, 2022 at 2:27 PM Ilija Tovilo wrote: > Hi everyone > > There hasn't been any discussion on this RFC for two weeks. I think > most concerns have been voiced. The result of the vote will most > likely come down to the views on backwards compatibility vs cleaning > up old b

[PHP-DEV] Re: [RFC][Under discussion] Deprecate ${} string interpolation

2022-03-31 Thread Ilija Tovilo
Hi everyone There hasn't been any discussion on this RFC for two weeks. I think most concerns have been voiced. The result of the vote will most likely come down to the views on backwards compatibility vs cleaning up old behavior. The RFC contains an impact analysis and a script to fully migrate e