title: What does this mean? "Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM"
body: <p>T_PAAMAYIM_NEKUDOTAYIM sounds really exotic, but most certainly absolutely nonsense to me. I traced it all down to this lines of code:</p>
  
  <pre><code>&lt;?php
  Class Context {
      protected $config;
  
      public function getConfig($key) { // Here's the problem somewhere...
      $cnf = $this-&gt;config;
      return $cnf::getConfig($key);
      }
  
      function __construct() {
      $this-&gt;config = new Config();
      }
  }
  ?&gt;
  </code></pre>
  
  <p>In the constructor I create a Config object. Here's the class:</p>
  
  <pre><code>final class Config {
      private static $instance = NULL;
      private static $config;
  
      public static function getConfig($key) {
      return self::$config[$key];
      }
  
      public static function getInstance() {
      if (!self::$instance) {
          self::$instance = new Config();
      }
      return self::$instance;
      }
  
      private function __construct() {
      // include configuration file
      include __ROOT_INCLUDE_PATH . '/sys/config/config.php'; // defines a $config array
      $this-&gt;config = $config;
      }
  }
  </code></pre>
  
  <p>No idea why this doesnt work / what the error means...</p>