There is a project on YII2, which is hosted on the hosting and works without any problems. When deploying this project on the local server, the following error is popped up when the main page is displayed:
The problem is that the non-static method is called, which in turn returns the result of the work of another static method.
public function findRedirectByUrl($url) { return self::findOne(['old_url' => $url]); } I read that this exception can be thrown out if, for example, the PHP version is changed to a newer one, this is somewhere in the description of switching to another version in the section "Changes that break backward compatibility". But the problem is clear, the question is whether it is possible, without correcting the code in the project, to ignore this error. In production, everything works with the PHP version the same as on the local server. Are there any parameters, such as php.ini, that can fix this?
