title: How can I solve "Non-static method xxx:xxx() should not be called statically in PHP 5.4?
body: <p>Currently using a large platform in PHP.</p>
  
  <p>The server it's hosted on has recently been upgraded to PHP 5.4.</p>
  
  <p>Since, I've received many error messages like:</p>
  
  <blockquote>
    <p>[Sat May 26 19:04:41 2012] [error] PHP Strict Standards:  Non-static method Config::getData() should not be called statically, assuming $this from incompatible context in /xxx/Config.inc.php on line 35</p>
  </blockquote>
  
  <p>The example method is defined as (note the lack of 'static' keyword):</p>
  
  <pre><code>function &amp;getData() {
              $configData =&amp; Registry::get('configData', true, null);
  
      if ($configData === null) {
          // Load configuration data only once per request, implicitly
          // sets config data by ref in the registry.
          $configData = Config::reloadData();
      }
  
      return $configData;
  }
  </code></pre>
  
  <p>This has no caused a problem before, and I assume the error messages (which cause the application to crash) may be related to the recent upgrade to PHP5.4.</p>
  
  <p>Is there a PHP setting I can modify to 'ignore' the lack of static keyword?</p>