title: "Object of class ... could not be converted to string" in assignment
body: <p>Why does PHP think I want to convert that object to a string?</p>
  
  <pre class="lang-php prettyprint-override"><code>class Class1 {}
  
  class Class2 {
      function __construct( Class1 $class1Obj) {
          $this-&gt;$class1Obj = $class1Obj; // -&gt; Catchable fatal error: Object of class Class1 could not be converted to string
      }
  }
  
  $class1Obj = new Class1();
  $class2Obj = new Class2($class1Obj);
  </code></pre>