added lib class property for proper code-completion

This commit is contained in:
Steffen Schröder 2014-05-27 10:59:00 +02:00
parent 762d1652ee
commit cd9b522bfa
2 changed files with 4 additions and 3 deletions

View File

@ -89,11 +89,10 @@ class AsynchronousFileReader {
->set(CURLOPT_RETURNTRANSFER, true); ->set(CURLOPT_RETURNTRANSFER, true);
$request->addListener('complete', function (Event $event) use (&$function) { $request->addListener('complete', function (Event $event) use (&$function) {
/** @var Response $response */
$response = $event->response; $response = $event->response;
$error = ""; $error = null;
$content = ""; $content = null;
if ($response->hasError()) { if ($response->hasError()) {
$error = $response->getError()->getMessage(); $error = $response->getError()->getMessage();
} else { } else {

View File

@ -5,4 +5,6 @@ use Symfony\Component\EventDispatcher\Event as SymfonyEvent;
class Event extends SymfonyEvent class Event extends SymfonyEvent
{ {
/** @var Response $response */
public $response = null;
} }