Re: [PHP-DEV] [Vote] New in initializers

2021-07-06 Thread Nicolas Grekas
Le mar. 6 juil. 2021 à 15:38, Nikita Popov a écrit : > On Tue, Jul 6, 2021 at 2:30 PM Nicolas Grekas < > nicolas.grekas+...@gmail.com> wrote: > >> >> > > This is not 100% correct, you can have an attribte #[Foo(Foo::class)] >>> and >>> > > then calling ReflectionAttribute::getArguments would also

Re: [PHP-DEV] [Vote] New in initializers

2021-07-06 Thread Nikita Popov
On Tue, Jul 6, 2021 at 2:30 PM Nicolas Grekas wrote: > > > > This is not 100% correct, you can have an attribte #[Foo(Foo::class)] >> and >> > > then calling ReflectionAttribute::getArguments would also require to >> > > resolve the type Foo. So this is not different than what could happen >> > r

Re: [PHP-DEV] [Vote] New in initializers

2021-07-06 Thread Nicolas Grekas
> > > This is not 100% correct, you can have an attribte #[Foo(Foo::class)] > and > > > then calling ReflectionAttribute::getArguments would also require to > > > resolve the type Foo. So this is not different than what could happen > > right > > > now already. > > > > > > Despite its name, "::clas

Re: [PHP-DEV] [Vote] New in initializers

2021-07-06 Thread Benjamin Eberlei
On Tue, Jul 6, 2021 at 12:58 PM Rowan Tommins wrote: > On 06/07/2021 11:31, Benjamin Eberlei wrote: > > This is not 100% correct, you can have an attribte #[Foo(Foo::class)] and > > then calling ReflectionAttribute::getArguments would also require to > > resolve the type Foo. So this is not diffe

Re: [PHP-DEV] [Vote] New in initializers

2021-07-06 Thread Rowan Tommins
On 06/07/2021 11:31, Benjamin Eberlei wrote: This is not 100% correct, you can have an attribte #[Foo(Foo::class)] and then calling ReflectionAttribute::getArguments would also require to resolve the type Foo. So this is not different than what could happen right now already. Despite its name,

Re: [PHP-DEV] [Vote] New in initializers

2021-07-06 Thread Nicolas Grekas
> > I've opened voting on https://wiki.php.net/rfc/new_in_initializers. Voting >> > will close on 2021-07-14. >> > >> > Note that relative to the original RFC, new support is limited to >> parameter >> > default values, attribute arguments, static variable initializers and >> > global constant init

Re: [PHP-DEV] [Vote] New in initializers

2021-07-06 Thread Benjamin Eberlei
On Tue, Jul 6, 2021 at 9:31 AM Nicolas Grekas wrote: > Hi NIkita, > > I've opened voting on https://wiki.php.net/rfc/new_in_initializers. Voting > > will close on 2021-07-14. > > > > Note that relative to the original RFC, new support is limited to > parameter > > default values, attribute argume

Re: [PHP-DEV] [Vote] New in initializers

2021-07-06 Thread Nicolas Grekas
Hi NIkita, I've opened voting on https://wiki.php.net/rfc/new_in_initializers. Voting > will close on 2021-07-14. > > Note that relative to the original RFC, new support is limited to parameter > default values, attribute arguments, static variable initializers and > global constant initializers,