title: PHP Using $this->variable as Class Method Parameter Default Value
body: <p>Ok so this seems like a pretty dumb question but PHP Is telling me I can't do this,  or rather my IDE... </p>
  
  <p>In the below example its telling me I can't use $this->somevar as the default value for the method.</p>
  
  <p>ie... </p>
  
  <pre><code>class something {
  
  public somevar = 'someval';
  
  private function somefunc($default = $this-&gt;somevar) {
  
  }
  
  
  
  }
  </code></pre>