RE: [PHP-DEV] Remove $this from incompatible context
| From: | François Laupretre | Date: | Thu, 12 Feb 2015 14:56:04 +0000 |
| Subject: | RE: [PHP-DEV] Remove $this from incompatible context | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-82541@lists.php.net to get a copy of this message | ||
> De : Nikita Popov [mailto:nikita.ppv@gmail.com]
>
> class B {
> function test2() {
> A::test(); // Throws E_DEPRECATED
> // Followed by E_NOTICE for undefined $this variable
> }
> }
Sorry to get off-topic but could we raise the 'undefined variable' error to E_WARNING, at
least ? E_NOTICE seems very low for such an error.
Otherwise, +1 for your proposal. It's much better.
Regards
François