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

2020-05-26 Thread Pedro Magalhães
On Tue, May 26, 2020 at 3:46 PM Marco Pivetta wrote: > Considering that, as far as I know, only the constructor remains "special". > Leaving the special case only for constructors instead of all magic methods sounds better to me. Right now, that sounds like a winning compromise for the RFC. It

Re: [PHP-DEV] [RFC][DISCUSSION] Error Exceptions mode

2020-05-26 Thread Katie Volz
On Sun, May 24, 2020 at 7:29 PM Rowan Tommins wrote: > In my mind error_reporting should make absolutely no difference. As you > say, this option would be for people who don't want to interact with the > current error system in any way, and that includes its global > configuration state. > My

RE: [PHP-DEV] Draft RFC callable types + callable type/function autoloading

2020-05-26 Thread Iván Arias
> Hi internals, > > A while ago, I spent some time thinking about callables, and how they > are not very consistent, which makes people sad: > https://wiki.php.net/rfc/consistent_callables > > The reason I didn't pursue that RFC is that although tidying up PHP > core to be more consistent would be

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

2020-05-26 Thread Marco Pivetta
Hey Pedro, On Tue, May 26, 2020, 16:34 Pedro Magalhães wrote: > Hi Marco, > > Thanks for the feedback. > > About the sealed type example, it is true that `final protected` wouldn't > achieve the same thing. But as an attempt to provide an alternative design, > wouldn't an union type of the

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

2020-05-26 Thread Pedro Magalhães
Hi Marco, Thanks for the feedback. About the sealed type example, it is true that `final protected` wouldn't achieve the same thing. But as an attempt to provide an alternative design, wouldn't an union type of the desired children be a better choice? I can see some usefulness in it but IMHO, it

[PHP-DEV] Re: [VOTE] Unbundle ext/xmlrpc

2020-05-26 Thread Christoph M. Becker
On 12.05.2020 at 12:05, Christoph M. Becker wrote: > I have opened the voting for > > > > The voting period ends on 2020-05-26 (12:00 UTC). I'm pleased to announce that the RFC has been accepted unanimously (50:0). I'll do the unbundling as soon as

Re: [PHP-DEV] [RFC] [DISCUSSION] Ensure correct magic methods' signatures when typed

2020-05-26 Thread Gabriel Caruso
On Fri, 1 May 2020 at 13:06, Gabriel Caruso wrote: > On Fri, 1 May 2020 at 01:47, Dan Ackroyd wrote: > >> On Tue, 28 Apr 2020 at 17:32, Gabriel Caruso >> wrote: >> > >> > If there are no further requests or comments, I'll open this RFC for >> voting >> > next Friday. >> >> Hi Gabriel, >> >> I

[PHP-DEV] Improvement to errors

2020-05-26 Thread David Rodrigues
Hello! I've been thinking that some errors in PHP are very difficult to understand. Especially when we use two equal functions with different arguments on the same line. The error does not make it clear where the error is. $strVariable = 'hello'; $nullVariable = null; return strlen($strVariable)