Re: Re: [RFC] [Discussion] Final constants

From: Date: Tue, 18 May 2021 07:41:22 +0000
Subject: Re: Re: [RFC] [Discussion] Final constants
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-114512@lists.php.net to get a copy of this message
On Tue, May 18, 2021 at 1:23 AM Gabriel Caruso <carusogabriel34@gmail.com>
wrote:

> On Sun, 16 May 2021, 15:52 Máté Kocsis, <kocsismate90@gmail.com> wrote:
>
> > As I've fully finished the implementation, I intend to bring this to a
> vote
> > on Wednesday if no new concerns come up (besides the usual question about
> > the usefulness of the feature).
> >
> > Máté
>
>
> Interesting RFC Maté, thanks for bringing it.
>
> How would we know if a given constant is overwritable?
>
> Would we need something like ReflectionConstant::isOverwritable()?
>

Hi Gabriel, see https://wiki.php.net/rfc/final_class_const#reflection

> A ReflectionClassConstant::isFinal() method is added in order to be
able to retrieve if a constant is final.

Regards =)

-- 
Guilliam Xavier


Thread (4 messages)

« previous php.internals (#114512) next »