title: Unexpected T_VARIABLE, expecting T_FUNCTION fix
body: <p>I am getting this syntax error when running my php. Here is the code for a class I am trying to costruct: </p>
  
  <pre><code>function makeObject($s) {
      $secobj = new mySimpleClass($s);
      return $secobj;
  }
  
  class mySimpleClass {
  
      $secret = ""; 
  
      public function __construct($s) {
          $this -&gt; secret = $s;
      }
  
      public function getSecret() {
          return base64_encode(string $secret);
      }
  }
  </code></pre>
  
  <p>Anyone see whats wrong? Thanks!</p>