title: Access to undeclared static property php fatal error
body: <p>I am getting this error: <code>Access to undeclared static property: DBug::$errorMsg</code></p>
  
  <p>Following is the code</p>
  
  <pre><code>class DBug
  {
      private static $errorMsg = array(
          1 =&gt; 'inv-req',
          2 =&gt; 'inv-reqPrm',
          3 =&gt; 'no-set',
          4 =&gt; 'less-h',
          5 =&gt; 'less-w'
      );
  
      public static function showTinyErrMsg($errCode=0) 
      {
          if(SHOW_ERROR_MSG_IN_RESPONSE === TRUE) {
              if(array_key_exists($errCode, self::$errorMsg)) {
              echo "// ".self::$errMsg[$errCode].";\n" ;
              }
          }
      }
  }
  </code></pre>
  
  <p>I call this function by <code>DBug::showTinyErrMsg(1);</code>. I get the above mentioned error. I am surely missing some OO rule, please help me with this.</p>
  
  <p>P.s: The reason for this class having all static member is, that it's a long standing class with all static members, so I had to add this new method as static</p>