title: Only variables should be passed by reference
body: <p>I have a class:</p>
  
  <pre><code>class Validator {
      private $validationArray;
      private $cleanedValues;
  
      public function __construct($arg1, $arg2=NULL) {
          if(empty($arg2)) {
              $this-&gt;LoadValidatorByName($arg1);
          } else {
              $this-&gt;LoadValidatorFromLeadType($arg1, $arg2);
          }
      }
  
      private function LoadValidatorFromLeadType($lead_type, $vocabulary) {
              $ErrorReporter = new ErrorReporter;
              $taxonomy_term = reset(taxonomy_get_term_by_name($lead_type, $vocabulary));
  
  ...some more stuff
  </code></pre>
  
  <p>The function taxonomy_get_term_by_name is a Drupal function but the issue I am experiencing is a PHP one.</p>
  
  <p>When this method is called PHP complains with:</p>
  
  <pre><code>Strict warning: Only variables should be passed by reference in Validator-&gt;LoadValidatorFromLeadType() (line 32 of [path to my file])
  </code></pre>
  
  <p>Line 32 is ths line with:</p>
  
  <pre><code>$taxonomy_term = reset(taxonomy_get_term_by_name($lead_type, $vocabulary));
  </code></pre>
  
  <p>I've looked in to the error and I'm pretty sure I know what it means, but I can't understand what is wrong with my code that causes this warning.</p>