Re: [PHP-DEV] Re: Proposal for RFC to remove undefined arrayindexwarning when used ina ternary

2022-02-27 Thread Larry Garfield
On Sun, Feb 27, 2022, at 9:11 AM, Robert Landers wrote: > On Sun, Feb 27, 2022 at 12:35 PM Mark Randall wrote: > >> On 27/02/2022 09:12, Robert Landers wrote: >> > I'd also venture that this warning has caused more harm than good, in >> that >> > writing "$var['something'] ?? null" is second

Re: [PHP-DEV] Re: Proposal for RFC to remove undefined arrayindexwarning when used ina ternary

2022-02-27 Thread Robert Landers
On Sun, Feb 27, 2022 at 12:35 PM Mark Randall wrote: > On 27/02/2022 09:12, Robert Landers wrote: > > I'd also venture that this warning has caused more harm than good, in > that > > writing "$var['something'] ?? null" is second nature when writing new > > code, even if there is practically no

Re: [PHP-DEV] Re: Proposal for RFC to remove undefined arrayindexwarning when used ina ternary

2022-02-27 Thread Mark Randall
On 27/02/2022 09:12, Robert Landers wrote: I'd also venture that this warning has caused more harm than good, in that writing "$var['something'] ?? null" is second nature when writing new code, even if there is practically no chance for a non-existent key. Using null coalesce should only be