1
0
mirror of https://github.com/danog/amp.git synced 2024-11-30 04:29:08 +01:00

Make Subscriber not caring about $id type

This commit is contained in:
Bob Weinand 2016-08-14 04:47:48 +02:00
parent 80265b726e
commit 08d65bcd63

View File

@ -6,21 +6,15 @@ namespace Amp;
* Subscriber implementation returned from implementors of \Amp\Observable.
*/
class Subscriber {
/**
* @var string
*/
private $id;
/**
* @var callable
*/
/** @var callable */
private $unsubscribe;
/**
* @param string $id
* @param mixed $id
* @param callable $unsubscribe
*/
public function __construct(string $id, callable $unsubscribe) {
public function __construct($id, callable $unsubscribe) {
$this->id = $id;
$this->unsubscribe = $unsubscribe;
}