Re: [PHP-DEV] [RFC] Forbid $this being null in instance methods

2016-04-29 Thread Nikita Popov
On Fri, Apr 29, 2016 at 9:10 PM, Stanislav Malyshev wrote: > Hi! > > > I'd like to submit a small RFC for your consideration, which ensures > > something that really ought to be a given already: If you use $this in an > > instance method, you should actually get a $this (and not NULL). > > > >

Re: [PHP-DEV] [RFC] Forbid $this being null in instance methods

2016-04-29 Thread Stanislav Malyshev
Hi! > I'd like to submit a small RFC for your consideration, which ensures > something that really ought to be a given already: If you use $this in an > instance method, you should actually get a $this (and not NULL). > > https://wiki.php.net/rfc/forbid_null_this_in_methods > > As this is ta

Re: [PHP-DEV] [RFC] Forbid $this being null in instance methods

2016-04-29 Thread Bishop Bettini
On Fri, Apr 29, 2016 at 1:12 PM, Nikita Popov wrote: > Hi internals! > > I'd like to submit a small RFC for your consideration, which ensures > something that really ought to be a given already: If you use $this in an > instance method, you should actually get a $this (and not NULL). > > http

[PHP-DEV] [RFC] Forbid $this being null in instance methods

2016-04-29 Thread Nikita Popov
Hi internals! I'd like to submit a small RFC for your consideration, which ensures something that really ought to be a given already: If you use $this in an instance method, you should actually get a $this (and not NULL). https://wiki.php.net/rfc/forbid_null_this_in_methods As this is target