[RFC] Forbid $this being null in instance methods
| From: | Nikita Popov | Date: | Fri, 29 Apr 2016 17:12:01 +0000 |
| Subject: | [RFC] Forbid $this being null in instance methods | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-92954@lists.php.net to get a copy of this message | ||
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 targeting PHP 7.1, the RFC is careful to retain compatibility
with certain legacy PHP 4 code patterns.
Thanks,
Nikita