title: Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) on line 10
body: <p>So i get the error </p>
  
  <blockquote>
    <p>"Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in
    /Applications/MAMP/htdocs/classes/class.ManageUsers.php on line 10",</p>
  </blockquote>
  
  <p>does anyone know what part of the syntax is wrong? Below is the relevant class.</p>
  
  <pre><code>5    class ManageUsers {
  6   public $link;
  7   
  8   function __construct(){
  9       $db_connection = new dbConnection();
  10      $this-&gt;link = db_connection-&gt;connect();
  11      return $this-&gt;link;
  12  }
  </code></pre>