How can I solve "Non-static method xxx:xxx() should not be called statically in PHP 5.4?
Date : March 29 2020, 07:55 AM
hop of those help? You can either remove E_STRICT from error_reporting(), or you can simply make your method static, if you need to call it statically. As far as I know, there is no (strict) way to have a method that can be invoked both as static and non-static method. Also, which is more annoying, you cannot have two methods with the same name, one being static and the other non-static.
|
PhpStorm - How to detect PHP error "Non-static method should not be called statically"?
Tag : php , By : Ir0nh1de
Date : March 29 2020, 07:55 AM
this one helps. That inspection works fine here ( proof).
|
social-share Non-static method should not be called statically in Laravel
Date : March 29 2020, 07:55 AM
it fixes the issue Replace use Chencha\Share\Share to use Share; on the top of your page. The Share class in the example is the Facade Chencha\Share\ShareFacade which should be resolved by laravel loader when you register ShareServiceProvider.
|
How can I solve "Non-static method xxx::xxxx() should not be called statically"
Date : March 29 2020, 07:55 AM
|
Non-static method Redis::get() cannot be called statically in laravel 5.4?
Tag : php , By : KaoFloppy
Date : March 29 2020, 07:55 AM
|
social-share Non-static method should not be called statically in Laravel