Re: [PHP-DEV] Add ReflectionFunctionAbstract::isAnonymous()

2022-05-05 Thread Nicolas Grekas
Le ven. 22 oct. 2021 à 15:41, Dylan K. Taylor a écrit : > > On Fri, 22 Oct 2021 14:19:23 +0100 Claude Pache < > claude.pa...@gmail.com> wrote > > > > > Le 21 oct. 2021 à 01:12, Dylan K. Taylor a écrit : > > > > Hi all, > > > > Given the addition of Closure::fromCallable() and

Re: [PHP-DEV] Add ReflectionFunctionAbstract::isAnonymous()

2021-10-22 Thread Dylan K. Taylor
On Fri, 22 Oct 2021 14:19:23 +0100 Claude Pache wrote > > Le 21 oct. 2021 à 01:12, Dylan K. Taylor a écrit : > > Hi all, > > Given the addition of Closure::fromCallable() and the upcoming first-class > callable syntax in 8.1, it seems slightly problematic that there's

Re: [PHP-DEV] Add ReflectionFunctionAbstract::isAnonymous()

2021-10-22 Thread Claude Pache
> Le 21 oct. 2021 à 01:12, Dylan K. Taylor a écrit : > > Hi all, > > Given the addition of Closure::fromCallable() and the upcoming first-class > callable syntax in 8.1, it seems slightly problematic that there's no simple > way to tell by reflection if a Closure refers to an anonymous

Re: [PHP-DEV] Add ReflectionFunctionAbstract::isAnonymous()

2021-10-21 Thread Aaron Piotrowski
> On Oct 20, 2021, at 6:12 PM, Dylan K. Taylor wrote: > > Hi all, > > Given the addition of Closure::fromCallable() and the upcoming first-class > callable syntax in 8.1, it seems slightly problematic that there's no simple > way to tell by reflection if a Closure refers to an anonymous

Re: [PHP-DEV] Add ReflectionFunctionAbstract::isAnonymous()

2021-10-21 Thread Nikita Popov
On Thu, Oct 21, 2021 at 1:12 AM Dylan K. Taylor wrote: > Hi all, > > Given the addition of Closure::fromCallable() and the upcoming first-class > callable syntax in 8.1, it seems slightly problematic that there's no > simple way to tell by reflection if a Closure refers to an anonymous >

[PHP-DEV] Add ReflectionFunctionAbstract::isAnonymous()

2021-10-20 Thread Dylan K. Taylor
Hi all, Given the addition of Closure::fromCallable() and the upcoming first-class callable syntax in 8.1, it seems slightly problematic that there's no simple way to tell by reflection if a Closure refers to an anonymous function or not. ReflectionFunctionAbstract::isClosure() (perhaps