Re: Remove $this from incompatible context

From: Date: Thu, 12 Feb 2015 21:43:47 +0000
Subject: Re: Remove $this from incompatible context
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-82561@lists.php.net to get a copy of this message
Hi! > It was always an E_STRICT error to call a non-static method statically > (as usual, not counting scoped calls) and since PHP 5.6 it was > E_DEPRECATED in the most common case. I don't see why we would suddenly > want to go back on this and make it work without any warnings. The reason why is simple - it works, it doesn't produce any bad behavior, it's clear what it does, so why produce warnings that are essentially useless to the user as they don't warn them about any potential problem? Unless, of course, I'm missing some potential problem - please point it out then. But "we've always done it this way" is not particularly good argument in this case - we did many things one way and then changed and started doing it a better way. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#82561) next »