added lib class property for proper code-completion
This commit is contained in:
parent
762d1652ee
commit
cd9b522bfa
@ -89,11 +89,10 @@ class AsynchronousFileReader {
|
||||
->set(CURLOPT_RETURNTRANSFER, true);
|
||||
|
||||
$request->addListener('complete', function (Event $event) use (&$function) {
|
||||
/** @var Response $response */
|
||||
$response = $event->response;
|
||||
|
||||
$error = "";
|
||||
$content = "";
|
||||
$error = null;
|
||||
$content = null;
|
||||
if ($response->hasError()) {
|
||||
$error = $response->getError()->getMessage();
|
||||
} else {
|
||||
|
@ -5,4 +5,6 @@ use Symfony\Component\EventDispatcher\Event as SymfonyEvent;
|
||||
|
||||
class Event extends SymfonyEvent
|
||||
{
|
||||
/** @var Response $response */
|
||||
public $response = null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user