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

2024-04-01 Thread Rowan Tommins [IMSoP]
On 29/03/2024 18:14, Robert Landers wrote: When generating proxies for existing types, you often need to share some state between the proxies. To do that, you put static methods/properties on the proxy class and hope to the PHP Gods that nobody will ever accidentally name something in their

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

2024-04-01 Thread Rowan Tommins [IMSoP]
On 29/03/2024 02:39, 하늘아부지 wrote: I created a wiki for __callStatic related issues. Please see: https://wiki.php.net/rfc/complete_callstatc_magic Hi, Several times in the discussion you have said (in different words) "__callStatic is called for instance methods which are private or

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

2024-03-31 Thread 하늘아부지
2024년 4월 1일 (월) 오전 2:31, Larry Garfield 님이 작성: > On Fri, Mar 29, 2024, at 6:12 PM, 하늘아부지 wrote: > > >> It would be more accurate to say "calling non-static methods in a > static-like manner is common *in Laravel* > > > > It might be correct to say that this is specific to Laravel. The > >

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

2024-03-31 Thread Larry Garfield
On Fri, Mar 29, 2024, at 6:12 PM, 하늘아부지 wrote: >> It would be more accurate to say "calling non-static methods in a >> static-like manner is common *in Laravel* > > It might be correct to say that this is specific to Laravel. The > problem, however, is that Laravel is used so extensively that

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

2024-03-30 Thread Robert Landers
On Sat, Mar 30, 2024 at 1:06 AM 하늘아부지 wrote: > > > > 2024년 3월 30일 (토) 오전 2:15, Robert Landers 님이 작성: >> >> On Fri, Mar 29, 2024 at 3:41 AM 하늘아부지 wrote: >> > >> > Hello. >> > >> > I created a wiki for __callStatic related issues. >> > Please see: >> >

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

2024-03-29 Thread Morgan
On 2024-03-30 13:06, 하늘아부지 wrote: Even currently, `__callStatic` is called in cases of non-static methods that are not public methods. `__callStatic` already acts as a rule-breaker. I think the problem here is a confusion based on the idea that there is necessarily some direct

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

2024-03-29 Thread 하늘아부지
2024년 3월 30일 (토) 오전 2:15, Robert Landers 님이 작성: > On Fri, Mar 29, 2024 at 3:41 AM 하늘아부지 wrote: > > > > Hello. > > > > I created a wiki for __callStatic related issues. > > Please see: > > https://wiki.php.net/rfc/complete_callstatc_magic > > > > I look forward to your interest and advice. > > >

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

2024-03-29 Thread 하늘아부지
2024년 3월 30일 (토) 오전 1:21, Larry Garfield 님이 작성: > On Fri, Mar 29, 2024, at 3:33 PM, 하늘아부지 wrote: > > 2024년 3월 29일 (금) 오후 10:21, Larry Garfield 님이 작성: > >> On Fri, Mar 29, 2024, at 2:39 AM, 하늘아부지 wrote: > >> > Hello. > >> > > >> > I created a wiki for __callStatic related issues. > >> > Please

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

2024-03-29 Thread Robert Landers
On Fri, Mar 29, 2024 at 3:41 AM 하늘아부지 wrote: > > Hello. > > I created a wiki for __callStatic related issues. > Please see: > https://wiki.php.net/rfc/complete_callstatc_magic > > I look forward to your interest and advice. > > Best Regards. > Daddyofsky Hey there, Some general feedback: The

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

2024-03-29 Thread Aleksander Machniak
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.

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

2024-03-29 Thread Larry Garfield
On Fri, Mar 29, 2024, at 3:33 PM, 하늘아부지 wrote: > 2024년 3월 29일 (금) 오후 10:21, Larry Garfield 님이 작성: >> On Fri, Mar 29, 2024, at 2:39 AM, 하늘아부지 wrote: >> > Hello. >> > >> > I created a wiki for __callStatic related issues. >> > Please see: >> > https://wiki.php.net/rfc/complete_callstatc_magic >> > I

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

2024-03-29 Thread 하늘아부지
2024년 3월 29일 (금) 오후 10:21, Larry Garfield 님이 작성: > On Fri, Mar 29, 2024, at 2:39 AM, 하늘아부지 wrote: > > Hello. > > > > I created a wiki for __callStatic related issues. > > Please see: > > https://wiki.php.net/rfc/complete_callstatc_magic > > I look forward to your interest and advice. > > I am

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

2024-03-29 Thread Larry Garfield
On Fri, Mar 29, 2024, at 2:39 AM, 하늘아부지 wrote: > Hello. > > I created a wiki for __callStatic related issues. > Please see: > https://wiki.php.net/rfc/complete_callstatc_magic > I look forward to your interest and advice. I am firmly against this proposal. I think my objection boils down to this

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

2024-03-29 Thread 하늘아부지
2024년 3월 29일 (금) 오후 5:43, Stéphane Hulard 님이 작성: > Le vendredi 29 mars 2024 à 03:39, 하늘아부지 a écrit : > > > Hello. > > > > > I created a wiki for __callStatic related issues. > > Please see: > > https://wiki.php.net/rfc/complete_callstatc_magic > > > > > I look forward to your interest and

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

2024-03-29 Thread Stéphane Hulard
Le vendredi 29 mars 2024 à 03:39, 하늘아부지 a écrit : > Hello. > > I created a wiki for __callStatic related issues. > Please see: > https://wiki.php.net/rfc/complete_callstatc_magic > > I look forward to your interest and advice. > > Best Regards. > Daddyofsky Hello ! I took a look at your

[PHP-DEV] [RFC] Invoke __callStatic when non-static public methods are called statically

2024-03-28 Thread 하늘아부지
Hello. I created a wiki for __callStatic related issues. Please see: https://wiki.php.net/rfc/complete_callstatc_magic I look forward to your interest and advice. Best Regards. Daddyofsky