[PHP-DEV] readonly properties

2021-08-12 Thread Marc
Hi, As 8.1 adds readonly properties I wonder which build-in properties should be defined readonly. Currently I could find build-in readonly properties only on PDO and DOM. Very incomplete list where readonly properties could make sense: 1. Enum properties: enum Test:string {     case TEST

[PHP-DEV] PHP 7.4.23RC1 is available for testing

2021-08-12 Thread Derick Rethans
PHP 7.4.23RC1 has just been released and can be downloaded from: Or use the git tag: php-7.4.23RC1 Windows binaries are available at: Please test it carefully, and report any bugs in the bug system at

Re: [PHP-DEV] Re: [RFC] Nullable intersection types

2021-08-12 Thread Nicolas Grekas
> On 11/08/2021 13:09, Nicolas Grekas wrote: > > > > On 10/08/2021 13:39, Nicolas Grekas wrote: > > > I will wait if I don't have the choice, but as many others > > reported, the > > > experience with 7.0 missing nullability was a pain. > > > > Apologies if you already did and

[PHP-DEV] Re: [RFC] Nullable intersection types

2021-08-12 Thread Nicolas Grekas
> > Hi everyone, > > as proposed by Nikita and Joe, I'm submitting this late RFC for your > consideration for inclusion in PHP 8.1. Intersection types as currently > accepted are not nullable. This RFC proposes to make them so. > > I wrote everything down about the reasons why here: >