We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 819d9cc commit 1bb5ba7Copy full SHA for 1bb5ba7
lib/Github/HttpClient/HttpClient.php
@@ -11,6 +11,7 @@
11
use Github\Exception\RuntimeException;
12
use Github\HttpClient\Listener\AuthListener;
13
use Github\HttpClient\Listener\ErrorListener;
14
+use Symfony\Component\EventDispatcher\EventSubscriberInterface;
15
16
/**
17
* Performs requests on GitHub API. API documentation should be self-explanatory.
@@ -82,7 +83,7 @@ public function addListener($eventName, $listener)
82
83
$this->client->getEventDispatcher()->addListener($eventName, $listener);
84
}
85
- public function addSubscriber($subscriber)
86
+ public function addSubscriber(EventSubscriberInterface $subscriber)
87
{
88
$this->client->addSubscriber($subscriber);
89
0 commit comments