title: What's wrong with this PHP code on Line 136
body: <p>I get the following error on my WP Dashboard: </p>
  
  <pre><code>Warning: First parameter must either be an object or the name of an existing class 
  in /home/content/88/11746388/html/wp-content/plugins/pluginname/pluginname.php on 
  line 136 
  </code></pre>
  
  <p>Those are my lines from 130 to 140. Any ideas?</p>
  
  <pre><code>function get_latest_version($plugin_file) {
  
      $latest_version = '';
  
      $sr_plugin_info = get_site_transient ( 'update_plugins' );
      // if ( property_exists($sr_plugin_info, 'response [$plugin_file]') &amp;&amp; property_exists('response [$plugin_file]', 'new_version') ) {
      if ( property_exists($sr_plugin_info, 'response [$plugin_file]') ) {
          $latest_version = $sr_plugin_info-&gt;response [$plugin_file]-&gt;new_version;    
      }
      return $latest_version;
  }
  </code></pre>