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
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
> 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
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
>