I have seen this around but cannot find a direct solution to this issue.
I have the following code line:
Code: Select all
$settings = DataSettings::getSettings();
I understand that PHP5 (my new test server installation) is the reason for this error and that I could potentially declare the function as static but I get the sense that this is a poor solution.
I have seen recommendations to replace :: with = but this clearly makes no sense with my code line above.
So, how best to make my old code PHP5 compatible?