Re: [PHP-DEV] Nullsafe array access can still emit a warning

2022-08-24 Thread Gert de Pagter
`$undefined?->bar()` does feel wrong, but `$arr[0]?->bar()` does not to me. But maybe i've just been using javascript too much lately On Wed, 24 Aug 2022 at 15:11, Marco Pivetta wrote: > > Hey Gert, > > On Wed, 24 Aug 2022 at 14:59, Gert de Pagter wrote: >> >

[PHP-DEV] Nullsafe array access can still emit a warning

2022-08-24 Thread Gert de Pagter
upcoming PHP version? I didn't see anything mentioned specifically about this in the RFC. https://3v4l.org/1raa8 Greetings, Gert de Pagter/ BackEndTea -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

[PHP-DEV] [RFC Proposal] Allow methods to 'become' static

2021-03-14 Thread Gert de Pagter
Hey Internals, Recently i've been working on an older code base, where we have a lot of classes with all static methods. We've been moving to injecting the classes, and calling the methods as if they were not static. I wanted to add interfaces to these classes, with non static methods, so we can

[PHP-DEV] RFC karma

2020-06-05 Thread Gert de Pagter
Hey Internals, I’d like RFC karma in order to write an RFC on intersection types. Could someone give me the need permissions? Thanks in advance! -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Intersection types

2020-05-30 Thread Gert de Pagter
Hi Internals, With recent additions of the type system like union types [1], id like to propose adding intersection types as well. Looking through past RFCs I found one from 2016 [2] which never left the discussion phase and is currently marked as inactive. Before continuing with an RFC I'd lik