Re: [PHP-DEV] [RFC][Discuss] Covariant return- and contravariant parameter- types

2018-11-28 Thread Dan Ackroyd
Marcos Passos wrote: > Supporting `static` return would come in handy to define interfaces for > immutable objects. But it's not a requirement, right? With this RFC, the following code will work: class ParentImmutable { function modify() : ParentImmutable { ... } } class ChidImmut

Re: [PHP-DEV] Don't silence fatal errors

2018-11-28 Thread Fwentish Aelondes
Breaking BC might be unnecessary if instead of changing the default behavior of @, you add an additional flag to error_reporting that enables the new behavior, something like E_UNSILENCE_FATAL. Then developers would only need to switch a flag in php.ini to get the old behavior back, instead of re-w

Re: [PHP-DEV] Don't silence fatal errors

2018-11-28 Thread Claude Pache
> Le 26 nov. 2018 à 22:42, Nikita Popov a écrit : > > Hi internals, > > When the silencing operator @ is used, the intention is generally to > silence expected warnings or notices. However, it currently also silences > fatal errors. As fatal errors also abort request execution, the result will

Re: [PHP-DEV] Don't silence fatal errors

2018-11-28 Thread Agustin Casiva
On Mon, Nov 26, 2018 at 6:43 PM Nikita Popov wrote: > Hi internals, > > When the silencing operator @ is used, the intention is generally to > silence expected warnings or notices. However, it currently also silences > fatal errors. As fatal errors also abort request execution, the result will >