title: Assign a local variable in callback method
body: <p>I have a method like this:  </p>
  
  <pre><code>    $status = null;
      $authority = null;
  
      SoapWrapper::service('currency', function (Service $service) use ($data, $status, $authority)
      {
          $service-&gt;call('PaymentRequest', [$data]);
          $status = $service-&gt;call('PaymentRequest', [$data])-&gt;Status;
          $authority = $service-&gt;call('PaymentRequest', [$data])-&gt;Authority;
      });
      return array(['status' =&gt; $status, 'authority' =&gt; $authority]);
  </code></pre>
  
  <p>What I wanna do is assign <code>$status</code> and <code>$authority</code> in the callback method.  But phpstorm hints me in the <code>return array</code> area that <code>$status</code> and <code>$authority</code> are never assigned.  </p>
  
  <p>How can I assign local variables in the callback method?</p>