title: How to fix Notice: Only variable references should be returned by reference in
body: <p>i am using php script got from torrenteditor to create torrent files , but when i create new torrent files, using specified method, torrent files gets created but i get lots of notices ., like this </p>
  
  <p><strong>Only variable references should be returned by reference in myfile.php  on line 319</strong></p>
  
  <p>on this line</p>
  
  <pre><code>return new BEncode_End();
  </code></pre>
  
  <p>which is specified as another class as </p>
  
  <pre><code>class BEncode_End
  {
      public function get_type()
      {
          return 'end';
      }
  }
  </code></pre>
  
  <p>so how can i fix this notices ?</p>
  
  <p>i am pretty new to classes , so dont know where to start.</p>
  
  <p>complete script/code uploaded here <a href="http://pastebin.com/L6ktvrne" rel="nofollow">http://pastebin.com/L6ktvrne</a> , line 319</p>
  
  <p>i am using </p>
  
  <pre><code>ini_set('display_errors', 1); 
  error_reporting(E_ALL);
  </code></pre>