Skip to content

Commit

Permalink
Make Connector argument optional
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwdan authored Aug 27, 2019
1 parent a4100ef commit 011af39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Subject/WebSocketSubject.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class WebSocketSubject extends Subject
private $closeObserver;
private $serializer;

public function __construct(string $url, array $protocols = [], Subject $openObserver = null, Subject $closeObserver = null, ConnectorInterface $connector)
public function __construct(string $url, array $protocols = [], Subject $openObserver = null, Subject $closeObserver = null, ConnectorInterface $connector = null)
{
$this->openObserver = $openObserver ?? new Subject();
$this->closeObserver = $closeObserver ?? new Subject();
Expand Down

0 comments on commit 011af39

Please sign in to comment.