Re: [RFC] [Discussion] Remove inappropriate inheritance signature checks on private methods

From: Date: Fri, 22 May 2020 20:18:52 +0000
Subject: Re: [RFC] [Discussion] Remove inappropriate inheritance signature checks on private methods
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-110262@lists.php.net to get a copy of this message
Hey Bruce,


On Fri, May 22, 2020, 22:07 Bruce Weirdan <weirdan@gmail.com> wrote:

>
> On Fri, May 22, 2020 at 7:26 PM Marco Pivetta <ocramius@gmail.com> wrote:
>
>> Overall, this RFC breaks some design capabilities that are within the
>> language, specifically around __-prefixed methods in the language.
>
>
> Wouldn't your use cases be covered by protected final though, as
> proposed by Pedro?
>

This design is made appositely to prevent the child class from being able
to call the constructor: the only viable constructors are the named
constructors on the supertype

>


Thread (11 messages)

« previous php.internals (#110262) next »