Re: [RFC] Invoke __callStatic when non-static public methods are called statically

From: Date: Fri, 29 Mar 2024 16:40:49 +0000
Subject: Re: [RFC] Invoke __callStatic when non-static public methods are called statically
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-122809@lists.php.net to get a copy of this message
On 29.03.2024 14:03, Larry Garfield wrote:
On the contrary, I would favor going the other direction: Calling a static method as though it were non-static currently works, and I would support making that an error, to further emphasize that static and non-static methods are not interchangeable.
It's side-tracking, but I'd like to note that I would vote against such an idea. I don't have a strong opinion on the proposed RFC yet. -- Aleksander Machniak Kolab Groupware Developer [https://kolab.org] Roundcube Webmail Developer [https://roundcube.net] ---------------------------------------------------- PGP: 19359DC1 # Blog: https://kolabian.wordpress.com

« previous php.internals (#122809) next »